diff options
Diffstat (limited to 'libgo/runtime/runtime.h')
-rw-r--r-- | libgo/runtime/runtime.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libgo/runtime/runtime.h b/libgo/runtime/runtime.h index bf07c12..ddc99eb 100644 --- a/libgo/runtime/runtime.h +++ b/libgo/runtime/runtime.h @@ -50,6 +50,7 @@ typedef uint8 bool; typedef uint8 byte; typedef struct M M; typedef struct MCache MCache; +typedef struct FixAlloc FixAlloc; typedef struct Lock Lock; /* We use mutexes for locks. 6g uses futexes directly, and perhaps @@ -95,6 +96,7 @@ enum struct M { + int32 id; int32 mallocing; int32 gcing; int32 locks; @@ -103,6 +105,7 @@ struct M int32 holds_finlock; int32 gcing_for_finlock; int32 profilehz; + uint32 fastrand; MCache *mcache; /* For the list of all threads. */ @@ -152,8 +155,8 @@ void runtime_lock(Lock*); void runtime_unlock(Lock*); void runtime_destroylock(Lock*); -void semacquire (uint32 *) asm ("libgo_runtime.runtime.Semacquire"); -void semrelease (uint32 *) asm ("libgo_runtime.runtime.Semrelease"); +void runtime_semacquire (uint32 *) asm ("libgo_runtime.runtime.Semacquire"); +void runtime_semrelease (uint32 *) asm ("libgo_runtime.runtime.Semrelease"); /* * sleep and wakeup on one-time events. @@ -192,6 +195,7 @@ void runtime_sigprof(uint8 *pc, uint8 *sp, uint8 *lr); void runtime_cpuprofinit(void); void runtime_resetcpuprofiler(int32); void runtime_setcpuprofilerate(void(*)(uintptr*, int32), int32); +uint32 runtime_fastrand1(void); struct __go_func_type; void reflect_call(const struct __go_func_type *, const void *, _Bool, _Bool, |