Added timeout constant B_ABSOLUTE_REAL_TIME_TIMEOUT which specifies a

timeout relative to the Epoch.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25434 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-05-10 21:34:51 +00:00
parent b932012815
commit 4d3680aaef
2 changed files with 19 additions and 5 deletions
+10 -3
View File
@@ -25,9 +25,16 @@ extern "C" {
#define B_INFINITE_TIMEOUT (9223372036854775807LL)
enum {
B_TIMEOUT = 8, /* relative timeout */
B_RELATIVE_TIMEOUT = 8, /* fails after a relative timeout with B_WOULD_BLOCK */
B_ABSOLUTE_TIMEOUT = 16 /* fails after an absolute timeout with B_WOULD BLOCK */
B_TIMEOUT = 0x8, /* relative timeout */
B_RELATIVE_TIMEOUT = 0x8, /* fails after a relative timeout
with B_TIMED_OUT */
B_ABSOLUTE_TIMEOUT = 0x10, /* fails after an absolute timeout
with B_TIMED_OUT */
/* experimental Haiku only API */
B_TIMEOUT_REAL_TIME_BASE = 0x40,
B_ABSOLUTE_REAL_TIME_TIMEOUT = B_ABSOLUTE_TIMEOUT
| B_TIMEOUT_REAL_TIME_BASE
};
/*-------------------------------------------------------------*/