Should I use Mutex OR Critical Section for Windows Mobile RIL

Posted by afriza on Stack Overflow See other posts from Stack Overflow or by afriza
Published on 2010-03-20T06:37:41Z Indexed on 2010/03/20 6:41 UTC
Read the original article Hit count: 549

Hi,

I am using a Radio Layer Interface (RIL) Native API in Windows Mobile application. In this API, the return values / results of most functions are not returned immediately but are passed through a callback function which is passed to the RIL API.

Some usage examples are found at XDA Develompent Tools and Google Gears Geolocation API.

My question is, in these two examples, a mutex is used to guard the data instead of other synchronization objects.

Now, will Critical Section do fine here in the use cases described by both examples? Which thread or process will actually call the callback functions?

© Stack Overflow or respective owner

Related posts about windows-mobile

Related posts about winapi