Data Structures | Functions
spinlock.h File Reference

Simple spinlock. More...

Data Structures

struct  vtm_spinlock
 

Functions

VTM_API void vtm_spinlock_init (struct vtm_spinlock *lock)
 
VTM_API void vtm_spinlock_lock (struct vtm_spinlock *lock)
 
VTM_API void vtm_spinlock_unlock (struct vtm_spinlock *lock)
 

Function Documentation

VTM_API void vtm_spinlock_init ( struct vtm_spinlock lock)

Initializes the spinlock.

Parameters
lockthe spinlock that should be initialized
VTM_API void vtm_spinlock_lock ( struct vtm_spinlock lock)

Locks the spinlock.

Parameters
lockthe spinlock that should be locked
VTM_API void vtm_spinlock_unlock ( struct vtm_spinlock lock)

Unlocks the spinlock.

Parameters
lockthe spinlock that should be unlocked