From 1bee6c1c96b1ad8ff5e00345aa19ebb7124719da Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Sun, 10 Mar 2013 00:46:13 -0500 Subject: [PATCH] ecere/net/dcom: Fixed indirection levels warnings on FreeBSD on Thread IDs --- ecere/src/net/dcom.ec | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ecere/src/net/dcom.ec b/ecere/src/net/dcom.ec index f2681ba..f87d044 100644 --- a/ecere/src/net/dcom.ec +++ b/ecere/src/net/dcom.ec @@ -158,7 +158,7 @@ public: CallVirtualMethodPacket packet = (CallVirtualMethodPacket)new0 byte[size]; VirtualCallAck ack = null; - if(currentThreadID == serverSocket.thread.id) + if(currentThreadID == (int64)serverSocket.thread.id) processingSocket = serverSocket; else { @@ -172,7 +172,7 @@ public: { next = processingSocket.next; if(processingSocket.connected && - processingSocket.thread.id == currentThreadID) + (int64)processingSocket.thread.id == currentThreadID) break; } } @@ -486,7 +486,7 @@ class DCOMClientThread : Thread guiApp.Lock(); thread.connected = false; guiApp.Unlock(); - if(thread.started && GetCurrentThreadID() != thread.id) + if(thread.started && GetCurrentThreadID() != (int64)thread.id) thread.Wait(); } @@ -536,7 +536,7 @@ public class DCOMService : Service }; ~DCOMService() { - if(thread.started && GetCurrentThreadID() != thread.id) + if(thread.started && GetCurrentThreadID() != (int64)thread.id) thread.Wait(); } @@ -557,7 +557,7 @@ public class DCOMService : Service DCOMServerSocket socket; thread.connected = false; result = Service::Stop(); - if(thread.started && GetCurrentThreadID() != thread.id) + if(thread.started && GetCurrentThreadID() != (int64)thread.id) thread.Wait(); } @@ -630,7 +630,7 @@ public: //guiApp.ProcessNetworkEvents(); // Process(); - if(GetCurrentThreadID() == thread.id) + if(GetCurrentThreadID() == (int64)thread.id) Process(); else thread.semaphore.Wait(); @@ -767,7 +767,7 @@ public: //guiApp.WaitNetworkEvent(); //guiApp.ProcessNetworkEvents(); //Process(); - if(GetCurrentThreadID() == thread.id) + if(GetCurrentThreadID() == (int64)thread.id) ProcessTimeOut(0.01); else ecere::sys::Sleep(0.01);//thread.semaphore.Wait(); @@ -790,7 +790,7 @@ public: { if(thread.started) { - if(GetCurrentThreadID() != thread.id) + if(GetCurrentThreadID() != (int64)thread.id) thread.Wait(); } acks.Free(); -- 1.8.3.1