Functions | Variables
examples/mutex.cpp File Reference

Demos the mutex functions. More...

#include <ecl/config.hpp>
#include <iostream>
#include <vector>
#include "../../include/ecl/threads/mutex.hpp"
#include "../../include/ecl/threads/thread.hpp"
#include <ecl/time/sleep.hpp>
Include dependency graph for examples/mutex.cpp:

Go to the source code of this file.

Functions

void f ()
 
int main ()
 

Variables

ecl::Mutex mutex
 
int shared_value = 0
 

Detailed Description

Demos the mutex functions.

Date
April, 2013

Definition in file examples/mutex.cpp.

Function Documentation

◆ f()

void f ( )

Definition at line 27 of file examples/mutex.cpp.

◆ main()

int main ( )

Definition at line 41 of file examples/mutex.cpp.

Variable Documentation

◆ mutex

ecl::Mutex mutex

Definition at line 25 of file examples/mutex.cpp.

◆ shared_value

int shared_value = 0

Definition at line 24 of file examples/mutex.cpp.



ecl_threads
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:43