diff options
| author | zhangyan <[email protected]> | 2024-06-16 15:42:37 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-06-16 15:42:37 +0800 |
| commit | 842b555358a507c05ebdd4ee065177a69745fdaf (patch) | |
| tree | 834b6856db8f2990566d78ccc28cdb70c8efeb23 /components/libc | |
| parent | 2866da37a02dae72200e02ad87480718002760a5 (diff) | |
[bsp/phytium]c++支持,gpio,qspi驱动修改 (#9059)
* GPIO驱动与QSPI驱动适配
* C++支持
* update
---------
Co-authored-by: 张衍 <[email protected]>
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/posix/pthreads/pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/libc/posix/pthreads/pthread.c b/components/libc/posix/pthreads/pthread.c index 5cc3bbd7a7..0d7ed8f3d3 100644 --- a/components/libc/posix/pthreads/pthread.c +++ b/components/libc/posix/pthreads/pthread.c @@ -354,7 +354,7 @@ int pthread_detach(pthread_t thread) goto __exit; } - if ((ptd->tid->stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE) + if ((RT_SCHED_CTX(ptd->tid).stat & RT_THREAD_STAT_MASK) == RT_THREAD_CLOSE) { /* destroy this pthread */ _pthread_data_destroy(ptd); |
