sched/pthread: Added non-standard pthread_get_stackaddr_np() and pthread_get_stacksize_np().

This commit is contained in:
Joao Matos
2019-04-04 10:30:46 -06:00
committed by Gregory Nutt
parent c6dd9274e6
commit 08ff68edec
8 changed files with 184 additions and 14 deletions
+15 -13
View File
@@ -425,22 +425,24 @@
# define SYS_pthread_create (__SYS_pthread + 4)
# define SYS_pthread_detach (__SYS_pthread + 5)
# define SYS_pthread_exit (__SYS_pthread + 6)
# define SYS_pthread_getschedparam (__SYS_pthread + 7)
# define SYS_pthread_getspecific (__SYS_pthread + 8)
# define SYS_pthread_join (__SYS_pthread + 9)
# define SYS_pthread_key_create (__SYS_pthread + 10)
# define SYS_pthread_key_delete (__SYS_pthread + 11)
# define SYS_pthread_mutex_destroy (__SYS_pthread + 12)
# define SYS_pthread_mutex_init (__SYS_pthread + 13)
# define SYS_pthread_mutex_timedlock (__SYS_pthread + 14)
# define SYS_pthread_mutex_trylock (__SYS_pthread + 15)
# define SYS_pthread_mutex_unlock (__SYS_pthread + 16)
# define SYS_pthread_get_stackaddr_np (__SYS_pthread + 7)
# define SYS_pthread_get_stacksize_np (__SYS_pthread + 8)
# define SYS_pthread_getschedparam (__SYS_pthread + 9)
# define SYS_pthread_getspecific (__SYS_pthread + 10)
# define SYS_pthread_join (__SYS_pthread + 11)
# define SYS_pthread_key_create (__SYS_pthread + 12)
# define SYS_pthread_key_delete (__SYS_pthread + 13)
# define SYS_pthread_mutex_destroy (__SYS_pthread + 14)
# define SYS_pthread_mutex_init (__SYS_pthread + 15)
# define SYS_pthread_mutex_timedlock (__SYS_pthread + 16)
# define SYS_pthread_mutex_trylock (__SYS_pthread + 17)
# define SYS_pthread_mutex_unlock (__SYS_pthread + 18)
#ifndef CONFIG_PTHREAD_MUTEX_UNSAFE
# define SYS_pthread_mutex_consistent (__SYS_pthread + 17)
# define __SYS_pthread_setschedparam (__SYS_pthread + 18)
# define SYS_pthread_mutex_consistent (__SYS_pthread + 19)
# define __SYS_pthread_setschedparam (__SYS_pthread + 20)
#else
# define __SYS_pthread_setschedparam (__SYS_pthread + 17)
# define __SYS_pthread_setschedparam (__SYS_pthread + 19)
#endif
# define SYS_pthread_setschedparam (__SYS_pthread_setschedparam + 0)