Tulip_Mutex

Tulip_Mutex is a spinlock; a lock on the object causes the thread or process to do a busy wait on a  flag  until the flag is cleared by unlock operation by another thread or process. 

Class Definition

class Tulip_Mutex{
   public:
     void lock();
     void unlock();
};

Examples 
Suvas Vajracharya