Changeset 925a21e in mainline for abi/include/synch.h


Ignore:
Timestamp:
2011-09-24T14:20:29Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5bf76c1
Parents:
867e2555 (diff), 1ab4aca (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

    r867e2555 r925a21e  
    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.