VirtualBox

Changeset 25167 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Dec 3, 2009 2:25:08 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/critsect.h

    r20374 r25167  
    4141
    4242/** @defgroup grp_rt_critsect       RTCritSect - Critical Sections
     43 *
     44 * A "critical section" synchronization primitive. This can be used to
     45 * protect a section of code or data to which access must be exclusive.
     46 * Only one thread can hold access to a critical section at one time.
     47 *
     48 * A critical section is a fast write lock; if the critical section is
     49 * not acquired, then entering it is fast (requires no system call).
     50 *
     51 * Use RTCritSectInit to initialize a critical section; use RTCritSectEnter
     52 * and RTCritSectLeave to acquire and release access. IPRT uses the Windows
     53 * terminology here; on other platform, this might be called a "futex" or a
     54 * "fast mutex".
     55 *
     56 * If you need a read/write semaphore which allows multiple readers
     57 * but only writer, use RTSEMRW instead.
     58 *
    4359 * @ingroup grp_rt
    4460 * @{
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette