Mercurial > dwindows
comparison os2/dw.c @ 579:cea01bd2e0a7
Thread functions should use the API/DWSIGNAL calling conventions.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 17 Apr 2005 11:39:25 +0000 |
parents | 70c8a30c254f |
children | 4df2d1639005 |
comparison
equal
deleted
inserted
replaced
578:e4c5b03c7ce8 | 579:cea01bd2e0a7 |
---|---|
8338 */ | 8338 */ |
8339 void _dwthreadstart(void *data) | 8339 void _dwthreadstart(void *data) |
8340 { | 8340 { |
8341 HAB thishab = WinInitialize(0); | 8341 HAB thishab = WinInitialize(0); |
8342 HMQ thishmq = WinCreateMsgQueue(dwhab, 0); | 8342 HMQ thishmq = WinCreateMsgQueue(dwhab, 0); |
8343 void (*threadfunc)(void *) = NULL; | 8343 void (* API threadfunc)(void *) = NULL; |
8344 void **tmp = (void **)data; | 8344 void **tmp = (void **)data; |
8345 | 8345 |
8346 threadfunc = (void (*)(void *))tmp[0]; | 8346 threadfunc = (void (*)(void *))tmp[0]; |
8347 threadfunc(tmp[1]); | 8347 threadfunc(tmp[1]); |
8348 | 8348 |