summaryrefslogtreecommitdiff
path: root/libcpu/sim/posix
diff options
context:
space:
mode:
authorMeco Jianting Man <[email protected]>2021-03-31 14:44:02 +0800
committerGitHub <[email protected]>2021-03-31 14:44:02 +0800
commitebe9d15d6f3760455e479546c829b7a4e25cddba (patch)
treea082cb39a09e0d26e97b07edc1cb5170f64a7bdb /libcpu/sim/posix
parent1ba020f3c89fbf2ac2a5b58424852e501fd59a91 (diff)
parenta225ca8014aae63f2d6ef46811fe8d689981e54a (diff)
Merge pull request #32 from RT-Thread/master
pr
Diffstat (limited to 'libcpu/sim/posix')
-rw-r--r--libcpu/sim/posix/cpu_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpu/sim/posix/cpu_port.c b/libcpu/sim/posix/cpu_port.c
index eb1ae4865c..dc3e9379dd 100644
--- a/libcpu/sim/posix/cpu_port.c
+++ b/libcpu/sim/posix/cpu_port.c
@@ -173,8 +173,8 @@ static void *thread_run(void *parameter)
/*TODO:
* 最后一行的pthread_exit永远没有机会执行,这是因为在threead->exit函数中
* 会发生线程切换,并永久将此pthread线程挂起,所以更完美的解决方案是在这
- * 里发送信号给主线程,主线程中再次唤醒此线程令其自动退出。
- */
+ * 里发送信号给主线程,主线程中再次唤醒此线程令其自动退出。
+ */
//sem_destroy(&thread->sem);
pthread_exit(NULL);