mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
cast threadstart func ptrs. Not sure why...
This commit is contained in:
parent
826a6dd82e
commit
b9aa155761
1 changed files with 10 additions and 5 deletions
|
@ -377,11 +377,16 @@ ce_sockwrap_new( MPFORMAL DataRecvProc proc, void* closure )
|
||||||
self->queueAddEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
|
self->queueAddEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
|
||||||
self->socketConnEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
|
self->socketConnEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
|
||||||
|
|
||||||
|
/* I have no idea why these casts are necessary to prevent warnings. All
|
||||||
self->threads[WRITER_THREAD] = CreateThread( NULL, 0, WriterThreadProc,
|
sigs look right to me. */
|
||||||
self, 0, NULL );
|
self->threads[WRITER_THREAD] =
|
||||||
self->threads[READER_THREAD] = CreateThread( NULL, 0, ReaderThreadProc,
|
CreateThread( NULL, 0,
|
||||||
self, 0, NULL );
|
(LPTHREAD_START_ROUTINE)WriterThreadProc,
|
||||||
|
self, 0, NULL );
|
||||||
|
self->threads[READER_THREAD] =
|
||||||
|
CreateThread( NULL, 0,
|
||||||
|
(LPTHREAD_START_ROUTINE)ReaderThreadProc,
|
||||||
|
self, 0, NULL );
|
||||||
return self;
|
return self;
|
||||||
} /* ce_sockwrap_new */
|
} /* ce_sockwrap_new */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue