| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Revert "system: pthread_barrierwait should be moved to kernel space" reason: new implementation does not requires the use of enter_critical_section, so the source code needs to be moved to user space This reverts commit d189a86a35482fc20951031e2b9bcb39929deef9. | 11 个月前 | |
Revert "system: pthread_barrierwait should be moved to kernel space" reason: new implementation does not requires the use of enter_critical_section, so the source code needs to be moved to user space This reverts commit d189a86a35482fc20951031e2b9bcb39929deef9. | 11 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 11 个月前 | |
Revert "pthread: call nx_pthread_exit install pthread_exit in kernel mode" This reverts commit be29509ef9f868017a89139ad6082edc8a741f87. | 11 个月前 | |
sched/pthread: detached thread should destroy the join info In order to ensure the detached thread obtain the correct return value from pthread_join()/pthread_cancel(), the detached thread will create joininfo to save the detached status after thread destroyed. If there are too many of detached threads in the process group, the joininfo will consume too much memory. This is not friendly to embedded MCU devices. This commit keep the semantics as #11898 was introduced, will no longer save joininfo for detached threads to avoid wasting memory. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com> | 11 个月前 | |
remove sched_lock in pthread_cond_broadcast reason: Since pthread_cond_broadcast is already protected by a mutex, even if sem_post causes a context switch, it will not affect the count of wait_count. Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
pthread_cond_broadcast use wait_count for judement This commit fixes the comment from https://github.com/apache/nuttx/pull/14581 Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
pthread_cond_broadcast use wait_count for judement This commit fixes the comment from https://github.com/apache/nuttx/pull/14581 Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
pthread_cond_broadcast use wait_count for judement This commit fixes the comment from https://github.com/apache/nuttx/pull/14581 Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
Revert "pthread: call nx_pthread_exit install pthread_exit in kernel mode" This reverts commit be29509ef9f868017a89139ad6082edc8a741f87. | 11 个月前 | |
sched/pthread: detached thread should destroy the join info In order to ensure the detached thread obtain the correct return value from pthread_join()/pthread_cancel(), the detached thread will create joininfo to save the detached status after thread destroyed. If there are too many of detached threads in the process group, the joininfo will consume too much memory. This is not friendly to embedded MCU devices. This commit keep the semantics as #11898 was introduced, will no longer save joininfo for detached threads to avoid wasting memory. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com> | 11 个月前 | |
pthread: The modification of tcb->flags should be carried out within the critical section. Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
sched/pthread/join: refactor pthread join to support join task 1. add support to join main task | static pthread_t self; | | static void *join_task(void *arg) | { | int ret; | ret = pthread_join(self, NULL); <--- /* Fix Task could not be joined */ | return NULL; | } | | int main(int argc, char *argv[]) | { | pthread_t thread; | | self = pthread_self(); | | pthread_create(&thread, NULL, join_task, NULL); | sleep(1); | | pthread_exit(NULL); | return 0; | } 2. Detach active thread will not alloc for additional join, just update the task flag. 3. Remove the return value waiting lock logic (data_sem), the return value will be stored in the waiting tcb. 4. Revise the return value of pthread_join(), consistent with linux e.g: Joining a detached and canceled thread should return EINVAL, not ESRCH https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html [EINVAL] The value specified by thread does not refer to a joinable thread. NOTE: This PR will not increase stack usage, but struct tcb_s will increase 32 bytes. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 11 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 11 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 11 个月前 | |
Merge branch 'master' into vela apache/nuttx commit id: eb27ebba8adfe29644a7b890f86e6f16941921dc Signed-off-by: ligd <liguiding1@xiaomi.com> Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> | 11 个月前 | |
mutex: fix mutex_unlock() assert when meet pthread_cancel() Situation: thread1: thread2: mutex_lock() sleep(1) thread_cancel(thread1) assert() mutex_unlock() Fix: replace mutex_unlock() with mutex_reset() when pthread_cancel() Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched/pthread: There is no need to use sched_[un]lock Signed-off-by: hujun5 <hujun5@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched/pthread/join: refactor pthread join to support join task 1. add support to join main task | static pthread_t self; | | static void *join_task(void *arg) | { | int ret; | ret = pthread_join(self, NULL); <--- /* Fix Task could not be joined */ | return NULL; | } | | int main(int argc, char *argv[]) | { | pthread_t thread; | | self = pthread_self(); | | pthread_create(&thread, NULL, join_task, NULL); | sleep(1); | | pthread_exit(NULL); | return 0; | } 2. Detach active thread will not alloc for additional join, just update the task flag. 3. Remove the return value waiting lock logic (data_sem), the return value will be stored in the waiting tcb. 4. Revise the return value of pthread_join(), consistent with linux e.g: Joining a detached and canceled thread should return EINVAL, not ESRCH https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_join.html [EINVAL] The value specified by thread does not refer to a joinable thread. NOTE: This PR will not increase stack usage, but struct tcb_s will increase 32 bytes. Signed-off-by: chao an <anchao@lixiang.com> Signed-off-by: zhangyuan29 <zhangyuan29@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 | |
sched: migrate to SPDX identifier Most tools used for compliance and SBOM generation use SPDX identifiers This change brings us a step closer to an easy SBOM generation. Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com> Signed-off-by: ligd <liguiding1@xiaomi.com> | 11 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 |