docs
authorTomas Mudrunka <tomas@mudrunka.cz>
Fri, 25 Jun 2021 12:46:58 +0000 (14:46 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Fri, 25 Jun 2021 12:46:58 +0000 (14:46 +0200)
c/pthread_extra/README.md [new file with mode: 0644]
c/pthread_extra/pthread_pause.c

diff --git a/c/pthread_extra/README.md b/c/pthread_extra/README.md
new file mode 100644 (file)
index 0000000..bf17f7e
--- /dev/null
@@ -0,0 +1,10 @@
+# pthread_extra
+
+Library implementing extra features on top of POSIX threads.
+Currently only tested on Linux. Mostly experimental code.
+
+### Components
+
+  * pthread_msgqueue - implements message queues, more features than POSIX mqueue (no known issues, but not really tested)
+  * pthread_multi - lock multiple mutexes at once (might cause deadlocks in complex scenarios)
+  * pthread_pause - implements suspend/resume functionality for pthreads (causes deadlocks under high load)
index 309016c289c3001159a7c94b9201dda47606c5e3..67a502331632de2ebf2acea1d6b322e06ce4824d 100644 (file)
@@ -11,6 +11,7 @@ void pthread_pause_handler() {
        sigfillset(&sigset);
        sigdelset(&sigset, PTHREAD_XSIG_CONT);
        sigsuspend(&sigset);
+       //int sig; sigwait(&sigset, &sig);
 }
 
 void pthread_pause_enable() {
This page took 0.15256 seconds and 4 git commands to generate.