Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tis_cond_destroy(3) [osf1 man page]

tis_cond_destroy(3)					     Library Functions Manual					       tis_cond_destroy(3)

NAME
tis_cond_destroy - Destroys the specified condition variable. LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <tis.h> int tis_cond_destroy( pthread_cond_t *cond); STANDARDS
None PARAMETERS
Address of the condition variable (passed by reference) to be destroyed. DESCRIPTION
This routine destroys the condition variable specified by cond. After this routine is called, DECthreads may reclaim internal storage used by the condition variable object. Call this routine when a condition variable will no longer be referenced. The results of this routine are unpredictable if the condition variable specified in cond does not exist or is not initialized. For more information about actions when threads are present, refer to the pthread_cond_destroy(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 object being referenced by cond is being referenced by another thread that is currently executing tis_cond_wait(3) on the condition variable specified in cond. (This error can only occur when threads are present.) The value specified by cond is not a valid condition variable. ERRORS
None RELATED INFORMATION
Functions: tis_cond_broadcast(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_destroy(3)

Check Out this Related Man Page

pthread_cond_destroy(3) 				     Library Functions Manual					   pthread_cond_destroy(3)

NAME
pthread_cond_destroy - Destroys a condition variable. LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so) SYNOPSIS
#include <pthread.h> int pthread_cond_destroy( pthread_cond_t *cond); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: IEEE Std 1003.1c-1995, POSIX System Application Program Interface PARAMETERS
Condition variable to be destroyed. DESCRIPTION
This routine destroys the condition variable specified by cond. This effectively uninitializes the condition variable. Call this routine when a condition variable will no longer be referenced. Destroying a condition variable allows DECthreads to reclaim internal memory asso- ciated with the condition variable. It is safe to destroy an initialized condition variable upon which no threads are currently blocked. Attempting to destroy a condition variable upon which other threads are blocked results in unpredictable behavior. The results of this routine are unpredictable, if the condition variable specified in cond does not exist or is not initialized. 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. The object being referenced by cond is being referenced by another thread that is currently executing pthread_cond_wait(3) or pthread_cond_timedwait(3) on the condition variable specified in cond. ERRORS
None RELATED INFORMATION
Functions: pthread_cond_broadcast(3), pthread_cond_init(3), pthread_cond_signal(3), pthread_cond_timedwait(3), pthread_cond_wait(3) Manuals: Guide to DECthreads and Programmer's Guide delim off pthread_cond_destroy(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

if...elif...fi condition in Unix

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)
Discussion started by: abidmalik
9 Replies

2. Shell Programming and Scripting

If condition is -lt than 5 letters trouble.

Hi, In an If condition, how can I specify if the variable are less than 5 letters, echo “error”. Something like this one: echo –n “Your name please: “ read name if ; then Echo “Your name must be at least 5 letters length” exit fi Thanks a lot… (6 Replies)
Discussion started by: TARFU
6 Replies

3. Shell Programming and Scripting

need help in IF condition!!

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)
Discussion started by: raghav1982
18 Replies

4. Shell Programming and Scripting

Problem in using AND OR condition together

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)
Discussion started by: gokulraj23
11 Replies

5. Shell Programming and Scripting

Reading data from file and assigning to variable

I was trying to store the number of lines in a file and store it in a file.after that i want to store the information in a file to a variable which is further used in the if loop to check certain condition. #!/bin/bash cat <file> | wc -l > count.txt x="$count.txt"; i=10; if ; then cat... (10 Replies)
Discussion started by: sudhakaryadav
10 Replies

6. Shell Programming and Scripting

How to check a list of 4-5 strings in IF condition?

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)
Discussion started by: ustechie
9 Replies

7. Shell Programming and Scripting

If condition problem

Hi, I need to use if condition for search a file pattern on a particular location. cd $file_Path if || then do this else do that fi Can someone help me with the if part, how i can put those conditions? make sure format should be *.file* and *.file file is a keyword which i... (5 Replies)
Discussion started by: amit.mathur08
5 Replies

8. Shell Programming and Scripting

Double condition

I trying to prevent user from entering empty string and alphabet, but i can do only on of either one cannot seem to make a double condition =.= Any one can help me?? Thank in advance while expr "$sold" : "*" > /dev/null ; #check for int do echo "Number only!" echo "No. of copies sold : "... (14 Replies)
Discussion started by: GQiang
14 Replies

9. Shell Programming and Scripting

if condition error: test: 0403-004 Specify a parameter with this command

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)
Discussion started by: jihmantiquilla
5 Replies

10. Shell Programming and Scripting

Compare the two variable with if condition

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)
Discussion started by: aroragaurav.84
5 Replies

11. UNIX for Dummies Questions & Answers

if condition in ksh

in my code if condition is not working. i am using array in the if condition the code: set -A rt 0 1 7 13 21 echo "Please enter a choice" read choice; for i in 0 1 2 3 4 do if }] then echo "something" fi done (6 Replies)
Discussion started by: jeanzibbin
6 Replies

12. Shell Programming and Scripting

Script with variable and condition

Hello newbies question... I just need a script able to launch a command when a condition is matched : #!/bin/ksh SIZ = 'cat /nurp/control.lst|wc -l' if test "$SIZ" -gt 0 then echo 1 else echo 2 fi but I receive errors messages ./t2: SIZ: not found 2 whats wrong ? (5 Replies)
Discussion started by: vdurieu
5 Replies

13. Shell Programming and Scripting

Create Dynamic if condition

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)
Discussion started by: wahi80
7 Replies

14. UNIX for Beginners Questions & Answers

If condition

hi what is different between two code below? what is the role of "./"? if ( -e wind ) then if ( -e ./wind ) then many thanks samad (5 Replies)
Discussion started by: abdossamad2003
5 Replies

15. Shell Programming and Scripting

Trigger script based on condition

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)
Discussion started by: Master_Mind
4 Replies