How to suspend the scheduler under Windows Mobile RRS feed

  • Question

  •  I am developing an application under Windows Mobile 6 in C and C++. Two threads share
    a resource (file). To serialize the accesses I decided to use the
    Critical Section pattern ( see the book
    Real-time design patterns: robust scalable architecture for real-time systems
    by Bruce Powell Douglass).

      So I need to suspend the scheduler during the critical sections (accesses to the
    resource). Which function can I use?

    Thank you!
    Thursday, July 29, 2010 3:12 PM