App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine._internal.django.utils.synch.RWLock Class Reference

Public Member Functions

def __init__
 
def reader_enters
 
def reader_leaves
 
def writer_enters
 
def writer_leaves
 

Public Attributes

 mutex
 
 can_read
 
 can_write
 
 active_readers
 
 active_writers
 
 waiting_readers
 
 waiting_writers
 

Detailed Description

Classic implementation of reader-writer lock with preference to writers.

Readers can access a resource simultaneously.
Writers get an exclusive access.

API is self-descriptive:
    reader_enters()
    reader_leaves()
    writer_enters()
    writer_leaves()

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