Threading and Synchronization in Mass storage driver
Threading and Synchronization in Mass storage driver
- Subject: Threading and Synchronization in Mass storage driver
- From: Yogesh P <email@hidden>
- Date: 30 Nov 2005 11:02:34 +0530
Hi Herb,
As per you suggetions, I had tried using following thread call,
IOCreateThread(com_My_driver::handle_request_loop,
(void*) &thr_id[i]);
But I am getting following error during compilation of my driver.
error: no matches converting function 'handle_request_loop' to type
'void (*) (void*)'
error: candidates are: void* com_My_driver::handle_request_loop(void*)
When I tried out the following call, I am not getting the compilation
error but my driver gets crash as soon as it calls IOCreateThread
function.
IOCreateThread((IOThreadFunc)&com_My_driver::handle_request_loop,
(void*) &thr_id[i]);
Please suggest to solve this problem.
Thanks in advance,
Yogesh Pahilwan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden