Rapicorn - Experimental UI Toolkit - Source Code  13.07.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Types | Public Member Functions
Rapicorn::Spinlock Class Reference

The Spinlock uses low-latency busy spinning to acquire locks. More...

#include <thread.hh>

List of all members.

Public Types

typedef pthread_spinlock_tnative_handle_type

Public Member Functions

void lock ()
void unlock ()
bool try_lock ()
native_handle_type native_handle ()
 Spinlock (const Spinlock &)
Mutexoperator= (const Spinlock &)

Detailed Description

The Spinlock uses low-latency busy spinning to acquire locks.

This class is a thin wrapper around pthread_spin_lock() and related functions. This class supports static construction.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines