Sylib
A C++ Library For V5
Loading...
Searching...
No Matches
sylib::Mutex Class Reference

Mutex. More...

#include <system.hpp>

Inheritance diagram for sylib::Mutex:

Public Member Functions

bool take ()
 Locks the mutex. More...
 
bool give ()
 Unlocks the mutex. More...
 

Detailed Description

Mutex.

This is a wrapper for pros::Mutex if running in a PROS enviroment, and a wrapper for vex::mutex if running in a VEXcode enviroment

Member Function Documentation

◆ give()

bool sylib::Mutex::give ( )

Unlocks the mutex.

◆ take()

bool sylib::Mutex::take ( )

Locks the mutex.