aboutsummaryrefslogtreecommitdiff
path: root/docs/thread/mutex.md
diff options
context:
space:
mode:
authorame <[email protected]>2025-10-28 17:36:01 -0500
committerame <[email protected]>2025-10-28 17:36:01 -0500
commit0a7692a87f0bf16f59e451df52c91aad5affce38 (patch)
tree8054576e366694e1166026795a92b6705b32297a /docs/thread/mutex.md
parentb1359c6e17a82f21ae996a7e137a1e6c6d8828b3 (diff)
thread.* docs
Diffstat (limited to 'docs/thread/mutex.md')
-rw-r--r--docs/thread/mutex.md23
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