⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 posix.txt

📁 fsmlabs的real time linux的内核
💻 TXT
字号:
- This version provides a subset of POSIX interface. Several exampleprograms demonstrate the new interface. Old programs will still run,however you are encouraged to migrate your programs to POSIX.	POSIX interface functions available in this release:clock_gettimeclock_settimeclock_getrestimeusleepnanosleepsched_get_priority_maxsched_get_priority_minpthread_selfpthread_attr_initpthread_attr_getstacksizepthread_attr_setstacksizepthread_attr_setschedparampthread_attr_getschedparampthread_attr_setdetachstatepthread_attr_getdetachstatepthread_yieldpthread_setschedparampthread_getschedparampthread_attr_setschedparampthread_attr_getschedparampthread_createpthread_exitpthread_cancelpthread_setcanceltypepthread_setcancelstatepthread_joinpthread_kill (signals supported: 0, RTL_SIGNAL_SUSPEND, RTL_SIGNAL_WAKEUP,RTL_SIGNAL_CANCEL)pthread_mutexattr_getpshared(3),pthread_mutexattr_setpshared(3),pthread_mutexattr_init(3),pthread_mutexattr_destroy(3),pthread_mutexattr_settype(3),pthread_mutexattr_gettype(3),pthread_mutex_init(3),pthread_mutex_destroy(3),pthread_mutex_lock(3),pthread_mutex_trylock(3),pthread_mutex_unlock(3)The following group of functions is supported if_POSIX_THREAD_PRIO_PROTECT options is defined:pthread_mutexattr_setprotocol(3)pthread_mutexattr_getprotocol(3)pthread_mutexattr_setprioceiling(3)pthread_mutexattr_getprioceiling(3)pthread_mutex_setprioceiling(3)pthread_mutex_getprioceiling(3)POSIX condition variables:pthread_condattr_getpshared(3),pthread_condattr_setpshared(3),pthread_condattr_init(3),pthread_condattr_destroy(3),pthread_cond_init(3),pthread_cond_destroy(3),pthread_cond_wait(3),pthread_cond_timedwait(3),pthread_cond_broadcast(3),pthread_cond_signal(3),sem_init(3),sem_destroy(3),sem_getvalue(3),sem_wait(3),sem_trywait(3),sem_post(3),sem_timedwait(3)pthread_spin_init(3),pthread_spin_destroy(3),pthread_spin_lock(3),pthread_spin_trylock(3),pthread_spin_unlock(3),sysconf(3),uname(2)Many of these functions are described, for example, in the Single UNIXSpecification, Version 2(http://www.opengroup.org/onlinepubs/7908799/index.html).Most Linux distributions contain man pages for these functions asimplemented by the LinuxThreads library.  You can try man 3pthread_create, for example.POSIX options supported (incomplete list):_POSIX_TIMEOUTS_POSIX_SPIN_LOCKS_POSIX_SEMAPHORES	Non-portable POSIX extensions:Manual pages for these functions can be found in the rtl/man directory.The include/rtl_sched.h file contains declarations of these and other relatedfunctions and types.pthread_attr_setcpu_np -- assign the created thread to a particular CPUpthread_attr_getcpu_nppthread_wait_np -- suspend the execution of the calling thread until the next period	(for periodic tasks). pthread_wait_np is a cancellation point.pthread_delete_np -- delete the thread.pthread_attr_setfp_np -- mark the created thread as using or not using the FPUpthread_setfp_np -- mark the thread as using or not using the FPUpthread_make_periodic_np (pthread_t p, hrtime_t start, hrtime_t period)	set timing parameters for periodic threadspthread_suspend_np() -- suspend the execution of the calling thread.	pthread_suspend_np(pthread_self()) is a cancellation point.pthread_wakeup_np (pthread_t thread) -- wake up the threadA possible use of these functions is demonstrated in the example programs.There are manual pages for these and other functions in the rtl/man directory.	Notes:pthread_create must only be called from Linux (i.e., not fromRT-threads).TODOsigemptyset, sigfillset, sigaddset, sigdelset, sigismember (3)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -