Gustavo Henrique Nihei
558b772146
include/threads: Fix pthread_mutexattr_t initialization on mtx_init
...
pthread_attr_init was being erroneously called for initializing an
instance of pthread_mutexattr_t.
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-31 11:21:22 +08:00
Gustavo Henrique Nihei
270e9196c6
include/threads: Prevent operator precedence issues
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-31 11:21:22 +08:00
Gustavo Henrique Nihei
b628d92e63
include/threads: Fix incompatible pointer type on call to pthread_join
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2021-08-31 11:21:22 +08:00
François Schauber
0bfacf4d12
include/threads.h: add missing semi-colon
2021-08-24 00:14:12 +08:00
Alin Jerpelea
9b9be7e1f0
include: Author: Gregory Nutt: update licenses to Apache 2.0
...
Update files from Gregory Nutt to Apache 2.0 license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-04 03:33:58 -08:00
Xiang Xiao
4f0957aca0
threads.h: Support mtx_timedlock and recursive mutex
...
And fix the minor typo error
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ic554b51beb7430db08f9c8a02798bc53eb998f5e
2020-06-02 09:45:05 +02:00
Gregory Nutt
2060d75ba2
Add a quick'n'dirty implementation of C11 threads.h
2014-01-07 18:09:35 -06:00