mxnet
Public Member Functions | List of all members
dmlc::Spinlock Class Reference

Simple userspace spinlock implementation. More...

#include <concurrency.h>

Collaboration diagram for dmlc::Spinlock:
Collaboration graph

Public Member Functions

 Spinlock ()
 
 ~Spinlock ()=default
 
void lock () noexcept(true)
 Acquire lock. More...
 
void unlock () noexcept(true)
 Release lock. More...
 

Detailed Description

Simple userspace spinlock implementation.

Constructor & Destructor Documentation

dmlc::Spinlock::Spinlock ( )
inline
dmlc::Spinlock::~Spinlock ( )
default

Member Function Documentation

void dmlc::Spinlock::lock ( )
inlinenoexcept

Acquire lock.

void dmlc::Spinlock::unlock ( )
inlinenoexcept

Release lock.


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