Bullet Collision Detection & Physics Library: btSpinMutex Class Reference

Bullet Collision Detection & Physics Library

- Main Page
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Private Attributes | List of all members
btSpinMutex Class Reference

btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep because it is designed to be used with a task scheduler which has one thread per core and the threads don't sleep until they run out of tasks. More...

`#include <btThreads.h>`

## Public Member Functions
| btSpinMutex ()
void | lock ()
void | unlock ()
bool | tryLock ()

## Private Attributes
int | mLock

## Detailed Description

btSpinMutex – lightweight spin-mutex implemented with atomic ops, never puts a thread to sleep because it is designed to be used with a task scheduler which has one thread per core and the threads don't sleep until they run out of tasks.

Not good for general purpose use.

Definition at line 45 of file btThreads.h.

## Constructor & Destructor Documentation

## ◆ btSpinMutex()

btSpinMutex::btSpinMutex | ( |  | ) |
| inline

Definition at line 50 of file btThreads.h.

## Member Function Documentation

## ◆ lock()

void btSpinMutex::lock | ( |  | ) |

Definition at line 196 of file btThreads.cpp.

## ◆ tryLock()

bool btSpinMutex::tryLock | ( |  | ) |

Definition at line 206 of file btThreads.cpp.

## ◆ unlock()

void btSpinMutex::unlock | ( |  | ) |

Definition at line 201 of file btThreads.cpp.

## Member Data Documentation

## ◆ mLock

int btSpinMutex::mLock
| private

Definition at line 47 of file btThreads.h.

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

- btThreads.h
- btThreads.cpp