SbRWMutex - Online Linux Manual PageSection : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin
NAMESbRWMutex
SYNOPSIS
#include <Inventor/threads/SbRWMutex.h>
Public Typesenum Precedence { READ_PRECEDENCE, WRITE_PRECEDENCE }
Public Member FunctionsSbRWMutex (Precedence policy)
~SbRWMutex (void)
int writeLock (void)
SbBool tryWriteLock (void)
int writeUnlock (void)
int readLock (void)
int tryReadLock (void)
int readUnlock (void)
Detailed DescriptionThe SbRWMutex is a mutex that i sused to grant both read and write access to the data it protects. Multiple threads can have read locks on the data at once, but only one write-lock can be given out and not while a thread has a read lock on the data. The policy on granting read locks to threads when a thread is waiting for the write lock is something that should be configurable at construction time but which isn't at the moment.
Constructor & Destructor Documentation
SbRWMutex::SbRWMutex (Precedence policy) [inline]Constructor.
SbRWMutex::~SbRWMutex (void) [inline]Destructor.
Member Function Documentation
int SbRWMutex::writeLock (void) [inline]This method blocks the calling thread until it gains write lock status on the SbRWMutex object. Referenced by SoDB::writelock().
SbBool SbRWMutex::tryWriteLock (void) [inline]This method tries to gain write lock status on the SbRWMutex. TRUE is returned if it was successful, FALSE otherwise. This is a non-blocking operation.
int SbRWMutex::writeUnlock (void) [inline]This method is used for unlocking the calling thread's write lock. Referenced by SoDB::writeunlock().
int SbRWMutex::readLock (void) [inline]This method blocks the calling thread until it gains read lock status on the SbRWMutex object. Referenced by SoDB::readlock().
SbBool SbRWMutex::tryReadLock (void) [inline]This method tries to gain read lock status on the SbRWMutex. TRUE is returned if it was successful, FALSE otherwise. This is a non-blocking operation.
int SbRWMutex::readUnlock (void) [inline]This method is used for unlocking the calling thread's read lock. Referenced by SoDB::readunlock().
AuthorGenerated automatically by Doxygen for Coin from the source code. 0
Johanes Gumabo
Data Size : 12,140 byte
man-SbRWMutex.3coin2Build : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 199,789
Visitor ID : :
Visitor IP : 18.189.192.214 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.