ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RTS_rwlock_t Struct Reference

A read-write lock for ROSE Thread Support. More...

#include <threadSupport.h>

Collaboration diagram for RTS_rwlock_t:

Public Attributes

unsigned magic
 
RTS_Layer layer
 
pthread_rwlock_t rwlock
 
RTS_mutex_t mutex
 
size_t nlocks
 
pthread_t owner
 

Detailed Description

A read-write lock for ROSE Thread Support.

As with POSIX Thread types, this type should be treated as opaque and initialized with RTS_RWLOCK_INITIALIZER or RTS_rwlock_init(). It is used as the argument for RTS_READ and RTS_WRITE macros.

Definition at line 363 of file threadSupport.h.

Member Data Documentation

unsigned RTS_rwlock_t::magic

Definition at line 364 of file threadSupport.h.

RTS_Layer RTS_rwlock_t::layer

Definition at line 365 of file threadSupport.h.

pthread_rwlock_t RTS_rwlock_t::rwlock

Definition at line 366 of file threadSupport.h.

RTS_mutex_t RTS_rwlock_t::mutex

Definition at line 367 of file threadSupport.h.

size_t RTS_rwlock_t::nlocks

Definition at line 368 of file threadSupport.h.

pthread_t RTS_rwlock_t::owner

Definition at line 369 of file threadSupport.h.


The documentation for this struct was generated from the following file: