lw_lock.h File Reference

#include <comet/config.h>
#include <comet/assert.h>
#include <windows.h>

Include dependency graph for lw_lock.h:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  comet

Classes

class  comet::lw_lock
class  comet::auto_reader_lock
class  comet::auto_writer_lock

Defines

#define COMET_LW_LOCK_SPIN   Sleep(0)


Detailed Description

Lightweight Multiple Reader Single Writer lock.

See Lightweight Lock.

The lw_lock class is heavily based on class LightweightLock written by Brad Wilson. see http://www.quality.nu/dotnetguy/archive/fog0000000007.aspx

Author:
Brad Wilson

Sofus Mortensen