diff options
| author | Russ Cox <rsc@golang.org> | 2009-03-24 15:04:18 -0700 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2009-03-24 15:04:18 -0700 |
| commit | 209865be7cbb95e745c1599507d5bde16c9f0b92 (patch) | |
| tree | 3ecf5c330d15193f7f4aa3fdd55a3bd7152eecf2 /src/runtime/linux/thread.c | |
| parent | 08cfcd1dd64d965fc319ae683638b16a1e93e075 (diff) | |
| download | go-209865be7cbb95e745c1599507d5bde16c9f0b92.tar.xz | |
convert Linux to auto-generated defs.h
TBR=r
OCL=26686
CL=26688
Diffstat (limited to 'src/runtime/linux/thread.c')
| -rw-r--r-- | src/runtime/linux/thread.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/runtime/linux/thread.c b/src/runtime/linux/thread.c index df24b0712d..4375eca9fc 100644 --- a/src/runtime/linux/thread.c +++ b/src/runtime/linux/thread.c @@ -5,6 +5,7 @@ #include "runtime.h" #include "defs.h" #include "signals.h" +#include "os.h" // Linux futex. // @@ -24,12 +25,12 @@ enum EAGAIN = 11, }; -// TODO(rsc) I tried using 1<<40 here but futex woke up (-ETIMEDOUT). +// TODO(rsc): I tried using 1<<40 here but futex woke up (-ETIMEDOUT). // I wonder if the timespec that gets to the kernel -// actually has two 32-bit numbers in it, so tha +// actually has two 32-bit numbers in it, so that // a 64-bit 1<<40 ends up being 0 seconds, // 1<<8 nanoseconds. -static struct timespec longtime = +static Timespec longtime = { 1<<30, // 34 years 0 |
