_lwp_cond_signal(2) System Calls _lwp_cond_signal(2)NAME
_lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable
SYNOPSIS
#include <sys/lwp.h>
int _lwp_cond_signal(lwp_cond_t *cvp);
int _lwp_cond_broadcast(lwp_cond_t *cvp);
DESCRIPTION
The _lwp_cond_signal() function unblocks one LWP that is blocked on the LWP condition variable pointed to by cvp.
The _lwp_cond_broadcast() function unblocks all LWPs that are blocked on the LWP condition variable pointed to by cvp.
If no LWPs are blocked on the LWP condition variable, then _lwp_cond_signal() and _lwp_cond_broadcast() have no effect.
Both functions should be called under the protection of the same LWP mutex lock that is used with the LWP condition variable being sig-
naled. Otherwise, the condition variable may be signalled between the test of the associated condition and blocking in _lwp_cond_wait().
This can cause an infinite wait.
RETURN VALUES
Upon successful completion, 0 is returned. A non-zero value indicates an error.
ERRORS
The _lwp_cond_signal() and _lwp_cond_broadcast() functions will fail if:
EINVAL The cvp argument points to an invalid LWP condition variable.
EFAULT The cvp argument points to an invalid address.
SEE ALSO _lwp_cond_wait(2), _lwp_mutex_lock(2)SunOS 5.11 8 Dec 1995 _lwp_cond_signal(2)
Check Out this Related Man Page
_lwp_cond_signal(2) System Calls _lwp_cond_signal(2)NAME
_lwp_cond_signal, _lwp_cond_broadcast - signal a condition variable
SYNOPSIS
#include <sys/lwp.h>
int _lwp_cond_signal(lwp_cond_t *cvp);
int _lwp_cond_broadcast(lwp_cond_t *cvp);
DESCRIPTION
The _lwp_cond_signal() function unblocks one LWP that is blocked on the LWP condition variable pointed to by cvp.
The _lwp_cond_broadcast() function unblocks all LWPs that are blocked on the LWP condition variable pointed to by cvp.
If no LWPs are blocked on the LWP condition variable, then _lwp_cond_signal() and _lwp_cond_broadcast() have no effect.
Both functions should be called under the protection of the same LWP mutex lock that is used with the LWP condition variable being sig-
naled. Otherwise, the condition variable may be signalled between the test of the associated condition and blocking in _lwp_cond_wait().
This can cause an infinite wait.
RETURN VALUES
Upon successful completion, 0 is returned. A non-zero value indicates an error.
ERRORS
The _lwp_cond_signal() and _lwp_cond_broadcast() functions will fail if:
EINVAL The cvp argument points to an invalid LWP condition variable.
EFAULT The cvp argument points to an invalid address.
SEE ALSO _lwp_cond_wait(2), _lwp_mutex_lock(2)SunOS 5.10 8 Dec 1995 _lwp_cond_signal(2)
Hey guyes!
i have a little problem in if condition, can anybody please solve my problem?
Here what i am doing.
if
then
echo "int1 is equal to int2"
elif
then
echo "int1 is greater than int2"
else
echo "int1 is smaller than int2"
fiNo, matter int1 is smaller than... (9 Replies)
Hi All ,,
This is my code .. i am checcking a file temp66.txt , when i execute this
shell it checks whether the file is 0 byte file or not ..
if it is a 0 byte file , then Program exists out else it Prints the Echo Statement ..
if then
RET_CODE=$?
if then
echo 'File... (18 Replies)
a=rhino
b=crocodil
c=testsc
if && "$c" = testsc ]
then
echo "Test #5 succeeds."
else
echo "Test #5 fails."
fi
i need to test or condition before check the output with AND condition. ur help is much appreciated... (11 Replies)
Hi Gurus,
To the Brain Teaser, if I add another condition, say the executable should not be altered, how the program should be altered? (no perl please, purely C). I forgot to mention this condition my staff had mentioned. ( forgot then and got now :D )
The program executed the first time... (4 Replies)
Hi Unix Champs,
I am a newbe to UNIX.
I need to create a condition where I want to check the value of a variable with 5 different strings, if matched then exit 1.
For ex:
if ]
then
echo "yes, condition satisfied...."
else
echo "no, condition not satisfied..."
fi
... (9 Replies)
Hi all,
I would like to ask if there's something wrong with my if - else condition, i couldn't run the script perfectly due to the error in my if - else condition stating that "test: 0403-004 Specify a parameter with this command."
below is the snippet of my script
if && && ]
then echo... (5 Replies)
Please help me with this:
I need to compare two values in if condition in shell script but its goes always to else condition:
TIME_CHECK=PM
TIME-CLOCK=PM
if ; then
echo "You have access!"
else
echo "ACCESS DENIED!"
fi (5 Replies)
Hello,
I want to use if condition in an expression as below:
$ORACLE_HOME is a variable something like below
/oraprod04_01/app/oracle/product/10204
Now here it is product/10204 I want to check if $ORACLE_HOME has something which has a string like /product/10* then one statement should... (4 Replies)
Getting syntax error when the condition after -o returns more than one file
if
then
echo "Found"
fi
output:
=>ls -l
total 5
-rw-rw-r-- 1 wes wes 0 Jun 25 04:51 a.done
-rw-rw-r-- 1 wes wes 0 Jun 25 04:51 a.zip
-rw-rw-r-- 1 wes wes ... (13 Replies)
Create Dynamic If condition
Hi,
I have a file color.txt which has data as shown below
Red
Blue
Green
Yellow
White
Pink
Black
Based on a variable I execute a tail command as shown below
tail -${LEFT_OVR} color.txt
LEFT_OVR can be any number less than count of number of lines in a... (7 Replies)
Without grep, I'd like to make a test condition so that any a word that does not have the successive letters car in it will be echoed. for example, bluecar will contain "car" so it will show up as a no
var=bluecar
$ echo $var|if ]; then echo "yes";fi
yes
this variable contains "car" so I... (5 Replies)
Hi Guys,
I am having below code which runs based on condition, Is it possible to check condition at the time of trigger
code=$1
if ;then
nohup sh script.sh $val 1 &
fi
I need to trigger if the $code = JP then only to trigger nohup sh script.sh $val 1 &
My try but wanted... (4 Replies)