From ed8b8901c067f0d378f973622f5f6d560d21e914 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 24 Sep 2024 14:54:22 -0400 Subject: Add '$' prefix on all user code --- stdlib/threads.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'stdlib/threads.h') 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 -- cgit v1.2.3