qinwei1
8021dfece6
sched/task/task_getpid: getpid should return process id not thread id
...
Summary:
implement the right semantics:
1. getpid should return the main thread id
2. gettid should return the current thread id
Refer to:
https://github.com/apache/incubator-nuttx/issues/2499
https://github.com/apache/incubator-nuttx/pull/2518
Signed-off-by: qinwei1 <qinwei1@xiaomi.com>
2022-11-17 17:58:08 +08:00
raiden00pl
d8483a24e8
include/threads.h: return values should be integer type to prevent compiler warnings
2022-10-02 22:30:29 +08:00
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