mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
Add syscall support for pthread_mutex_consistent()
This commit is contained in:
+14
-6
@@ -418,12 +418,20 @@
|
||||
# define SYS_pthread_mutex_lock (__SYS_pthread+19)
|
||||
# define SYS_pthread_mutex_trylock (__SYS_pthread+20)
|
||||
# define SYS_pthread_mutex_unlock (__SYS_pthread+21)
|
||||
# define SYS_pthread_once (__SYS_pthread+22)
|
||||
# define SYS_pthread_setschedparam (__SYS_pthread+23)
|
||||
# define SYS_pthread_setschedprio (__SYS_pthread+24)
|
||||
# define SYS_pthread_setspecific (__SYS_pthread+25)
|
||||
# define SYS_pthread_yield (__SYS_pthread+26)
|
||||
# define __SYS_pthread_smp (__SYS_pthread+27)
|
||||
|
||||
#ifndef CONFIG_PTHREAD_MUTEX_UNSAFE
|
||||
# define SYS_pthread_mutex_consistent (__SYS_pthread+22)
|
||||
# define __SYS_pthread_once (__SYS_pthread+23)
|
||||
#else
|
||||
# define __SYS_pthread_once (__SYS_pthread+22)
|
||||
#endif
|
||||
|
||||
# define SYS_pthread_once (__SYS_pthread_once+0)
|
||||
# define SYS_pthread_setschedparam (__SYS_pthread_once+1)
|
||||
# define SYS_pthread_setschedprio (__SYS_pthread_once+2)
|
||||
# define SYS_pthread_setspecific (__SYS_pthread_once+3)
|
||||
# define SYS_pthread_yield (__SYS_pthread_once+4)
|
||||
# define __SYS_pthread_smp (__SYS_pthread_once+5)
|
||||
|
||||
# ifdef CONFIG_SMP
|
||||
# define SYS_pthread_setaffinity_np (__SYS_pthread_smp+0)
|
||||
|
||||
+177
-174
File diff suppressed because it is too large
Load Diff
@@ -302,6 +302,7 @@ uintptr_t STUB_pthread_mutex_init(int nbr, uintptr_t parm1,
|
||||
uintptr_t STUB_pthread_mutex_lock(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pthread_mutex_trylock(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pthread_mutex_unlock(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pthread_mutex_consistent(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pthread_once(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_pthread_setschedparam(int nbr, uintptr_t parm1,
|
||||
uintptr_t parm2, uintptr_t parm3);
|
||||
|
||||
Reference in New Issue
Block a user