diff options
Diffstat (limited to 'docs/thread/mutex.md')
| -rw-r--r-- | docs/thread/mutex.md | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/thread/mutex.md b/docs/thread/mutex.md new file mode 100644 index 0000000..09acd77 --- /dev/null +++ b/docs/thread/mutex.md @@ -0,0 +1,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 |
