diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-24 14:54:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-24 14:54:22 -0400 |
| commit | ed8b8901c067f0d378f973622f5f6d560d21e914 (patch) | |
| tree | 5386490c8accd338836fc8764181ea2bb3f8df1f /stdlib/threads.h | |
| parent | 800e386105255c9c4faa9a7051b100a8768a70de (diff) | |
Add '$' prefix on all user code
Diffstat (limited to 'stdlib/threads.h')
| -rw-r--r-- | stdlib/threads.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/stdlib/threads.h b/stdlib/threads.h index 52091677..f46840b3 100644 --- a/stdlib/threads.h +++ b/stdlib/threads.h @@ -9,12 +9,14 @@ #include "types.h" #include "util.h" -pthread_t *Thread$new(Closure_t fn); -void Thread$cancel(pthread_t *thread); -void Thread$join(pthread_t *thread); -void Thread$detach(pthread_t *thread); -Text_t Thread$as_text(const pthread_t **thread, bool colorize, const TypeInfo *type); +#define Thread_t pthread_t* -extern TypeInfo Thread; +Thread_t Thread$new(Closure_t fn); +void Thread$cancel(Thread_t thread); +void Thread$join(Thread_t thread); +void Thread$detach(Thread_t thread); +Text_t Thread$as_text(const Thread_t *thread, bool colorize, const TypeInfo *type); + +extern const TypeInfo Thread$info; // vim: ts=4 sw=0 et cino=L2,l1,(0,W4,m1,\:0 |
