cast threadstart func ptrs. Not sure why...

This commit is contained in:
ehouse 2006-02-17 07:31:21 +00:00
parent 826a6dd82e
commit b9aa155761

View file

@ -377,11 +377,16 @@ ce_sockwrap_new( MPFORMAL DataRecvProc proc, void* closure )
self->queueAddEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
self->socketConnEvent = CreateEvent( NULL, FALSE, FALSE, NULL );
self->threads[WRITER_THREAD] = CreateThread( NULL, 0, WriterThreadProc,
self, 0, NULL );
self->threads[READER_THREAD] = CreateThread( NULL, 0, ReaderThreadProc,
self, 0, NULL );
/* I have no idea why these casts are necessary to prevent warnings. All
sigs look right to me. */
self->threads[WRITER_THREAD] =
CreateThread( NULL, 0,
(LPTHREAD_START_ROUTINE)WriterThreadProc,
self, 0, NULL );
self->threads[READER_THREAD] =
CreateThread( NULL, 0,
(LPTHREAD_START_ROUTINE)ReaderThreadProc,
self, 0, NULL );
return self;
} /* ce_sockwrap_new */