tis_cond_broadcast(3) Library Functions Manual tis_cond_broadcast(3)NAME
tis_cond_broadcast - Wakes all threads that are waiting on the specified condition variable.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_cond_broadcast(
pthread_cond_t *cond);
STANDARDS
None
PARAMETERS
Address of the condition variable (passed by reference) on which to broadcast.
DESCRIPTION
When threads are not present, this routine performs no actions.
When threads are present, this routine unblocks all threads waiting on the specified condition variable cond.
For more information about actions when threads are present, refer to the pthread_cond_broadcast(3) description.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The value specified by cond is invalid.)
ERRORS
None
RELATED INFORMATION
Functions: tis_cond_destroy(3), tis_cond_init(3), tis_cond_signal(3), tis_cond_wait(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
tis_cond_broadcast(3)
Check Out this Related Man Page
tis_cond_init(3) Library Functions Manual tis_cond_init(3)NAME
tis_cond_init - Initializes a condition variable.
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <tis.h>
int tis_cond_init(
pthread_cond_t *cond);
STANDARDS
None
PARAMETERS
Address of the condition variable (passed by reference) to be initialized.
DESCRIPTION
This routine initializes a condition variable (cond) with the DECthreads default condition variable attributes.
A condition variable is a synchronization object used in conjunction with a mutex. A mutex controls access to shared data. When threads
are present, a condition variable allows threads to wait for data to enter a defined state.
For more information about actions taken when threads are present, refer to the pthread_cond_init(3) description.
Your program can use the macro PTHREAD_COND_INITIALIZER to initialize statically allocated condition variables to the DECthreads default
condition variable attributes. Static initialization can be used only for a condition variable with storage class extern or static - auto-
matic (stack local) objects must be initialized by calling tis_cond_destroy(3). Use this macro as follows:
pthread_cond_t condition = PTHREAD_COND_INITIALIZER
When statically initialized, a condition variable should not also be initialized using tis_cond_init(3).
RETURN VALUES
If an error condition occurs, the following occurs: The routine returns an integer value indicating the type of error. The condition vari-
able is not initialized. The contents of condition variable cond are undefined.
The possible return values are as follows: Successful completion. The system lacks the necessary resources to initialize another condition
variable, or The system-imposed limit on the total number of condition variables under execution by a single user is exceeded. The imple-
mentation has detected an attempt to reinitialize the object referenced by cond, a previously initialized, but not yet destroyed condition
variable. The value specified by attr is not a valid condition variable. Insufficient memory exists to initialize the condition variable.
ERRORS
None
RELATED INFORMATION
Functions: tis_cond_broadcast(3), tis_cond_destroy(3), tis_cond_signal(3), tis_cond_wait(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
tis_cond_init(3)
Man Page
10 More Discussions You Might Find Interesting
1. Post Here to Contact Site Administrators and Moderators
i would like to see some of my olds post and threads so i can compile them for future use but when i tried to search all of my post some of them were not present. how can i have access from these threads?
thanks a lot! (1 Reply)
Hi,
Can someone tell help me on how to know the threads statistics on a unix machine similar to memory statisitcs.
I woule like to monitor the Number of threads per process and total number of threads that a system can accomodate.
Thank you
mrag (1 Reply)
Dear Srs,
I'm getting this error on a Linux box, running Apache 2.0.52:
"host: isc_taskmgr_create: no available threads"
Making some search for those strings in Google, didn't tell me anything about this.. appears to be related to SELinux, but it's disabled in the box.
Any idea about... (0 Replies)
Discussion started by: Santi
0 Replies
4. Forum Support Area for Unregistered Users & Account Problems
:confused:Hello,
Could you please let me know why I'm unable to post new threads.
What needs to be done from my side to get this activated.
Awaiting reply.
Thanks,
... (0 Replies)
Discussion started by: tjmn23
0 Replies
5. Post Here to Contact Site Administrators and Moderators
Hi All,
Can any1 help me out in broadcasting a message to all users if a condtion is meet.
Like I am trying to get values from a directory for service monitoring.
If a condition is meet it should broadcast the message.
I try to use wall command but i m not sure how its works as its... (1 Reply)
Hi,
I have put a similar question in one of the other threads through which I got the solution shown below but I have some more condition to add to it, hence have further queries on it. I appologies if I should be putting this with the old thread.
I have a file which perform a grep on the... (1 Reply)
Discussion started by: simi28
1 Replies
8. Post Here to Contact Site Administrators and Moderators
In the last few minutes, two unrelated threads have become merged:
https://www.unix.com/shell-programming-scripting/156628-measure-thread-execution-c-unix-2.html
I guess that the intention was to merge threads 156625 and 156715 (both from rob171171). (1 Reply)
Discussion started by: methyl
1 Replies
9. Post Here to Contact Site Administrators and Moderators
You need to do something about this now!!!
https://www.unix.com/security/199773-i-undertake-oders-fresh-updated-dumps-bank-logins-about-bank-login-i-mak.html
Appears on three different threads!!! No, four threads. (1 Reply)