1thr_getconcurrency(3C)   Standard C Library Functions   thr_getconcurrency(3C)
2
3
4

NAME

6       thr_getconcurrency,  thr_setconcurrency - get or set thread concurrency
7       level
8

SYNOPSIS

10       cc -mt [ flag... ] file...[ library... ]
11       #include <thread.h>
12
13       int thr_setconcurrency(int new_level);
14
15
16       int thr_getconcurrency(void);
17
18

DESCRIPTION

20       These functions are obsolete and  maintained  for  compatibility  only.
21       The thr_setconcurrency() function updates the desired concurrency level
22       that libthread maintains for the calling process. This value  does  not
23       affect the behavior of the calling process.
24
25
26       The  thr_getconcurrency()  function  returns  the current value for the
27       desired concurrency level.
28

RETURN VALUES

30       The thr_getconcurrency() function always returns the current value  for
31       the desired concurrency level.
32
33
34       If  successful,  the   thr_setconcurrency() function returns  0. Other‐
35       wise, a non-zero value is returned to indicate the error.
36

ERRORS

38       The  thr_setconcurrency() function will fail if:
39
40       EAGAIN     The  specified  concurrency  level  would  cause  a   system
41                  resource to be exceeded.
42
43
44       EINVAL     The value for new_level is negative.
45
46

ATTRIBUTES

48       See attributes(5) for descriptions of the following attributes:
49
50
51
52
53       ┌─────────────────────────────┬─────────────────────────────┐
54       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
55       ├─────────────────────────────┼─────────────────────────────┤
56       │MT-Level                     │MT-Safe                      │
57       └─────────────────────────────┴─────────────────────────────┘
58

SEE ALSO

60       thr_create(3C), attributes(5), standards(5)
61
62
63
64SunOS 5.11                        11 May 1998           thr_getconcurrency(3C)
Impressum