VEXcode IQ C++ Unofficial documentation for version 3.0.4.1
Loading...
Searching...
No Matches
vex::mutex Class Reference

Use this class to create and control mutexes. More...

#include <vex_thread.h>

Public Member Functions

void lock ()
 Locks the mutex and blocks if the mutex is not available.
 
bool try_lock ()
 Try to lock the mutex and returns if the mutex is not available.
 
void unlock ()
 Unlocks the mutex.
 

Detailed Description

Use this class to create and control mutexes.

Definition at line 186 of file vex_thread.h.

Member Function Documentation

◆ try_lock()

bool vex::mutex::try_lock ( )

Try to lock the mutex and returns if the mutex is not available.

Returns
Returns true if successful and false if the mutex is owned by another thread.

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