Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | Related Pages

tbb::spin_mutex Class Reference

A lock that occupies a single byte. More...

#include <spin_mutex.h>

List of all members.

Public Member Functions

 spin_mutex ()
 Construct unacquired lock.

Static Public Attributes

const bool is_rw_mutex = false
const bool is_recursive_mutex = false
const bool is_fair_mutex = false

Friends

class scoped_lock


Detailed Description

A lock that occupies a single byte.

A spin_mutex is a spin mutex that fits in a single byte. It should be used only for locking short critical sections (typically <20 instructions) when fairness is not an issue. If zero-initialized, the mutex is considered unheld.


Constructor & Destructor Documentation

tbb::spin_mutex::spin_mutex  )  [inline]
 

Construct unacquired lock.

Equivalent to zero-initialization of *this.


The documentation for this class was generated from the following file:

Copyright © 2005-2008 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.