Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset db6e419 in mainline for abi/include/synch.h


Ignore:
Timestamp:
2011-08-16T18:53:00Z (10 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master
Children:
49160c4
Parents:
e0e922d (diff), 45058baa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • abi/include/synch.h

    re0e922d rdb6e419  
    3333 */
    3434
    35 #ifndef KERN_SYNCH_H_
    36 #define KERN_SYNCH_H_
     35#ifndef ABI_SYNCH_H_
     36#define ABI_SYNCH_H_
    3737
    3838/** Request with no timeout. */
    39 #define SYNCH_NO_TIMEOUT        0
     39#define SYNCH_NO_TIMEOUT  0
    4040
    4141/** No flags specified. */
    42 #define SYNCH_FLAGS_NONE                0
     42#define SYNCH_FLAGS_NONE           0
    4343/** Non-blocking operation request. */
    44 #define SYNCH_FLAGS_NON_BLOCKING        (1 << 0)
     44#define SYNCH_FLAGS_NON_BLOCKING   (1 << 0)
    4545/** Interruptible operation. */
    46 #define SYNCH_FLAGS_INTERRUPTIBLE       (1 << 1)
     46#define SYNCH_FLAGS_INTERRUPTIBLE  (1 << 1)
    4747
    4848/** Could not satisfy the request without going to sleep. */
    49 #define ESYNCH_WOULD_BLOCK      1
     49#define ESYNCH_WOULD_BLOCK  1
    5050/** Timeout occurred. */
    51 #define ESYNCH_TIMEOUT          2
     51#define ESYNCH_TIMEOUT      2
    5252/** Sleep was interrupted. */
    53 #define ESYNCH_INTERRUPTED      4
     53#define ESYNCH_INTERRUPTED  4
    5454/** Operation succeeded without sleeping. */
    55 #define ESYNCH_OK_ATOMIC        8
     55#define ESYNCH_OK_ATOMIC    8
    5656/** Operation succeeded and did sleep. */
    57 #define ESYNCH_OK_BLOCKED       16
     57#define ESYNCH_OK_BLOCKED   16
    5858
    5959#define SYNCH_FAILED(rc) \
    6060        ((rc) & (ESYNCH_WOULD_BLOCK | ESYNCH_TIMEOUT | ESYNCH_INTERRUPTED))
     61
    6162#define SYNCH_OK(rc) \
    6263        ((rc) & (ESYNCH_OK_ATOMIC | ESYNCH_OK_BLOCKED))
Note: See TracChangeset for help on using the changeset viewer.