Документ взят из кэша поисковой машины. Адрес оригинального документа : http://rtm-cs.sinp.msu.ru/manual/rtl/posix.txt
Дата изменения: Thu Feb 24 01:07:24 2000
Дата индексирования: Mon Oct 1 19:51:03 2012
Кодировка:
- This version provides a subset of POSIX interface. Several example
programs 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_gettime
clock_settime
clock_getres

sched_get_priority_max
sched_get_priority_min

pthread_self

pthread_attr_init
pthread_attr_getstacksize
pthread_attr_setstacksize
pthread_yield

pthread_setschedparam
pthread_getschedparam
pthread_attr_setschedparam
pthread_attr_getschedparam
pthread_create

pthread_exit
pthread_kill (signals supported: RTL_SIGNAL_SUSPEND, RTL_SIGNAL_WAKEUP)

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)



These functions are described, for example, in the Single UNIX
Specification, Version 2
(http://www.opengroup.org/onlinepubs/7908799/index.html).

Most Linux distributions contain man pages for these functions as
implemented by the LinuxThreads library. You can try man 3
pthread_create, for example.

Non-POSIX functions:

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 related
functions and types.

pthread_attr_setcpu_np
pthread_attr_getcpu_np
pthread_wait_np -- suspend the execution of the calling thread until the next period (for periodic tasks)
pthread_delete_np -- delete the thread
pthread_setfp_np -- mark the thread as using or not using the FPU
pthread_make_periodic_np (pthread_t p, hrtime_t start, hrtime_t period) -- set timing parameters for periodic threads
pthread_suspend_np() -- suspend the execution of the calling thread
pthread_wakeup_np (pthread_t thread) -- wake up the thread


A 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 from
RT-threads).

TODO
sigemptyset, sigfillset, sigaddset, sigdelset, sigismember (3)