Cyg_Scheduler::get_sched_lock
Name: Cyg_Scheduler::get_sched_lock ( ) - get the lock count of a thread
Synopsis:
static cyg_ucount32 Cyg_Scheduler::get_sched_lock
(
  void
)
Description: Gets the lock count on the current thread. Will return 0 if this thead is not locked. Note that this class function is static.
Include: #include <cyg/kernel/sched.hxx>
#include <cyg/kernel/sched.inl>
Returns: The number of times the calling thread has been locked.
See Also: Cyg_Scheduler::lock, Cyg_Scheduler::unlock

Cyg_Scheduler::lock
Name: Cyg_Scheduler::lock ( ) - lock a thread
Synopsis:
static void Cyg_Scheduler::lock
(
  void
)
Description: Prevents the calling thread from being preempted by another thread. Note that this class function is static. A thread can be locked multiple times. Each call to Cyg_Scheduler::lock() must be paired with a call to Cyg_Scheduler::unlock() to unlock the scheduler.
Include: #include <cyg/kernel/sched.hxx>
#include <cyg/kernel/sched.inl>
Returns: nothing
See Also: Cyg_Scheduler::get_sched_lock, Cyg_Scheduler::unlock

Cyg_Scheduler::unlock
Name: Cyg_Scheduler::unlock ( ) - unlock a thread
Synopsis:
static void Cyg_Scheduler::unlock
(
  void
) 
Description: This unlocks a thread so that it can be preempted by another thread. Note that for each call to Cyg_Scheduler::lock there has to be a call to this class function to actually unlock the thread.
Include: #include <cyg/kernel/sched.hxx>
#include <cyg/kernel/sched.inl>
Returns: nothing
See Also: Cyg_Scheduler::get_sched_lock, Cyg_Scheduler::lock