From 0a7692a87f0bf16f59e451df52c91aad5affce38 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 28 Oct 2025 17:36:01 -0500 Subject: thread.* docs --- docs/thread/mutex.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docs/thread/mutex.md (limited to 'docs/thread/mutex.md') 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 -- cgit v1.2.3