mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
pthread: Fix compilation error on pthread_cond_wait when CONFIG_CANCELLATION_POINTS and CONFIG_PTHREAD_MUTEX_UNSAFE are enabled.
This commit is contained in:
committed by
Gregory Nutt
parent
c59a5efcae
commit
03bd3688bc
@@ -121,7 +121,7 @@ void pthread_mutex_inconsistent(FAR struct pthread_tcb_s *tcb);
|
|||||||
# define pthread_mutex_give(m) pthread_givesemaphore(&(m)->sem)
|
# define pthread_mutex_give(m) pthread_givesemaphore(&(m)->sem)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_CANCELLATION_POINTS
|
#if defined(CONFIG_CANCELLATION_POINTS) && !defined(CONFIG_PTHREAD_MUTEX_UNSAFE)
|
||||||
uint16_t pthread_disable_cancel(void);
|
uint16_t pthread_disable_cancel(void);
|
||||||
void pthread_enable_cancel(uint16_t oldstate);
|
void pthread_enable_cancel(uint16_t oldstate);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user