aboutsummaryrefslogtreecommitdiff
path: root/docs/thread/mutex.md
blob: 09acd77e604533af2b6c86bf4569717701e4a540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## mutex

thread.mutex()

creates a pthread_mutex

### mutex:lock

mutex:lock()

locks the mutex

### mutex:unlock

mutex:unlock()

you'll never guess what this one does (unlocks the mutex)

### mutex:free

mutex:free()

calls the __gc method