hedgewars/uFLIPC.pas
branchqmlfrontend
changeset 11408 b894922d58cc
parent 10935 3a65fcd7c335
child 11423 091149424aa4
--- a/hedgewars/uFLIPC.pas	Tue Sep 08 19:20:58 2015 +0300
+++ b/hedgewars/uFLIPC.pas	Mon Nov 16 22:57:24 2015 +0300
@@ -192,14 +192,14 @@
 begin
     callbackPointerF:= p;
     callbackFunctionF:= f;
-    callbackListenerThreadF:= SDL_CreateThread(@engineListener{$IFDEF SDL2}, 'engineListener'{$ENDIF}, nil);
+    callbackListenerThreadF:= SDL_CreateThread(@engineListener, 'engineListener', nil);
 end;
 
 procedure registerNetCallback(p: pointer; f: TIPCCallback);
 begin
     callbackPointerN:= p;
     callbackFunctionN:= f;
-    callbackListenerThreadN:= SDL_CreateThread(@netListener{$IFDEF SDL2}, 'netListener'{$ENDIF}, nil);
+    callbackListenerThreadN:= SDL_CreateThread(@netListener, 'netListener', nil);
 end;
 
 procedure initIPC;
@@ -224,8 +224,8 @@
 
 procedure freeIPC;
 begin
-    SDL_KillThread(callbackListenerThreadF);
-    SDL_KillThread(callbackListenerThreadN);
+    //FIXME SDL_KillThread(callbackListenerThreadF);
+    //FIXME SDL_KillThread(callbackListenerThreadN);
     SDL_DestroyMutex(mutFrontend);
     SDL_DestroyMutex(mutEngine);
     SDL_DestroyMutex(mutNet);