*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> tis_mutex_trylock (3)              
Title
Content
Arch
Section
 

tis_mutex_trylock(3)

Contents


NAME    [Toc]    [Back]

       tis_mutex_trylock - Attempts to lock the specified mutex

SYNOPSIS    [Toc]    [Back]

       #include <tis.h>

       int tis_mutex_trylock(
               pthread_mutex_t *mutex );

LIBRARY    [Toc]    [Back]

       Standard C Library (libc.so, libc.a)

STANDARDS    [Toc]    [Back]

       None

PARAMETERS    [Toc]    [Back]

       Address of the mutex (passed by reference) to be locked.

DESCRIPTION    [Toc]    [Back]

       This  routine  attempts to lock the specified mutex mutex.
       When this routine is called, an attempt  is  made  immediately
  to  lock  the  mutex.  If the mutex is successfully
       locked, zero (0) is returned.

       If the specified mutex is already locked when this routine
       is  called,  the  caller  does  not  wait for the mutex to
       become available. [EBUSY] is returned, and the thread does
       not wait to acquire the lock.

RETURN VALUES    [Toc]    [Back]

       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
       mutex is already locked; therefore, it was  not  acquired.
       The value specified by mutex is invalid.

ERRORS    [Toc]    [Back]

       None

SEE ALSO    [Toc]    [Back]

      
      
       Functions:     tis_mutex_destroy(3),    tis_mutex_init(3),
       tis_mutex_lock(3), tis_mutex_unlock(3)

       Manuals: Guide to DECthreads and Programmer's Guide



                                             tis_mutex_trylock(3)
[ Back ]
 Similar pages
Name OS Title
pthread_mutex_trylock Tru64 Attempts to lock the specified mutex, without waiting if already locked
tis_read_trylock Tru64 Attempts to acquire a read-write lock for read access and does not wait if the lock cannot be immedi...
pthread_rwlock_tryrdlock Tru64 Attempts to acquire a readwrite lock for read access without waiting
pthread_rwlock_trywrlock Tru64 Attempts to acquire a readwrite lock for write access without waiting
pthread_mutex_lock FreeBSD lock a mutex
pthread_mutex_lock OpenBSD lock a mutex
pthread_mutex_trylock FreeBSD attempt to lock a mutex without blocking
pthread_mutex_trylock OpenBSD attempt to lock a mutex without blocking
pthread_mutexattr_gettype Tru64 Obtains the mutex type attribute in the specified mutex attributes object
pthread_mutexattr_settype Tru64 Specifies the mutex type attribute that is used when a mutex is created
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service