Permalink
Browse files

Removed Thread_Join() from socket worker shutdown.

  • Loading branch information...
1 parent 3b416b8 commit 4cc2138c3516fee224543a1ce59e4dd95323dfd4 John committed Oct 26, 2012
Showing with 3 additions and 2 deletions.
  1. +0 −1 Socket.c
  2. +3 −1 Socket.h
View
@@ -94,7 +94,6 @@ static void SAL_Socket_CallbackWorker_Initialize() {
static void SAL_Socket_CallbackWorker_Shutdown() {
asyncWorkerRunning = false;
- SAL_Thread_Join(asyncWorker);
AsyncLinkedList_Uninitialize(&asyncSocketList);
}
View
@@ -14,6 +14,8 @@ typedef void (*SAL_Socket_ReadCallback)(SAL_Socket* socket, void* const state);
#define SAL_Socket_Types_TCP 0 /* should probably add UDP eventually */
+#define SAL_Socket_AddressLength 16
+
struct SAL_Socket {
#ifdef WINDOWS
uint64 RawSocket;
@@ -24,7 +26,7 @@ struct SAL_Socket {
uint8 Family;
boolean Connected;
uint8 LastError;
- uint8* RemoteEndpointAddress;
+ uint8 RemoteEndpointAddress[SAL_Socket_AddressLength];
SAL_Socket_ReadCallback ReadCallback;
void* ReadCallbackState;
};

0 comments on commit 4cc2138

Please sign in to comment.