thr_getconcurrency, thr_setconcurrency - get or set thread concurrency level
cc -mt [ flag... ] file...[ library... ] #include <thread.h> int thr_setconcurrency(int new_level);
int thr_getconcurrency(void);
These functions are obsolete and maintained for compatibility only. The thr_setconcurrency() function updates the desired concurrency level that libthread maintains for the calling process. This value does not affect the behavior of the calling process.
The thr_getconcurrency() function returns the current value for the desired concurrency level.
The thr_getconcurrency() function always returns the current value for the desired concurrency level.
If successful, the thr_setconcurrency() function returns 0. Otherwise, a non-zero value is returned to indicate the error.
The thr_setconcurrency() function will fail if:
EAGAIN
EINVAL
See attributes(5) for descriptions of the following attributes:
|
thr_create(3C), attributes(5), standards(5)
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |