Книга: Programming with POSIX® Threads

10.1.1 POSIX options for XSH5

10.1.1 POSIX options for XSH5

Some of the features that are options in the Pthreads standard are required by XSH5. If your code relies on these Pthreads options, it will work on any system conforming to XSH5:

• _POSIX_THREADS: Threads are supported.

• _POSIX_THREAD_ATTR_STACKADDR: The stackaddr attribute is supported.

• _POSIX_THREAD_ATTR_STACKSIZE: The stacksize attribute is supported.

• _POSIX_THREAD_PROCESS_SHARED: Mutexes, condition variables, and XSH5 read/write locks can be shared between processes.

• _POSIX_THREAD_SAFE_FUNCTIONS: The Pthreads thread-safe functions are supported.

Several additional Pthreads options are "bundled" into the XSH5 realtime threads option group. If your system conforms to XSH5 and supports the _XOPEN_ REALTIME_THREADS option, then these Pthreads options are also supported:

• _POSIX_THREAD_PRIORITY_SCHEDULING: Realtime priority scheduling is supported.

• _POSIX_THREAD_PRIO_PROTECT: Priority ceiling mutexes are supported.

• _POSIX_THREAD_PRIO_INHERIT: Priority inheritance mutexes are supported.

Оглавление книги


Генерация: 1.533. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз