Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rwlock_destroy(3synch) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rwlock(3synch)

rwlock_init(3synch)

rw_rdlock(3synch)

rw_tryrdlock(3synch)

rw_trywrlock(3synch)

rw_unlock(3synch)

rw_wrlock(3synch)

synch(3synch)






       rwlock_destroy(3synch)                        rwlock_destroy(3synch)


       NAME
             rwlock_destroy - destroy a reader-writer lock

       SYNOPSIS
             cc [options] -Kthread file
             #include <synch.h>
             int rwlock_destroy(rwlock_t *lock);

          Parameters
             lock  pointer to the lock to be destroyed

       DESCRIPTION
             rwlock_destroy destroys the reader-writer lock pointed to by
             lock.  This includes invalidating the lock and freeing any
             associated dynamically allocated resources.

             lock must previously have been initialized (see rwlock_init).

          Return Values
             rwlock_destroy returns zero for success and an error number
             for failure, as described below.

          Errors
             If any of the following conditions is detected, rwlock_destroy
             returns the corresponding value:

             EBUSY    lock is locked or another thread is waiting to
                      acquire lock.

             EINVAL   Invalid argument specified.

       REFERENCES
             rwlock(3synch), rwlock_init(3synch), rw_rdlock(3synch),
             rw_tryrdlock(3synch), rw_trywrlock(3synch), rw_unlock(3synch),
             rw_wrlock(3synch), synch(3synch)













                           Copyright 1994 Novell, Inc.               Page 1








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026