From a241c5fec060565005d5bc471ed14ffed693e7bc Mon Sep 17 00:00:00 2001 From: deadwood Date: Tue, 17 Sep 2024 17:54:05 +0200 Subject: [PATCH] Adjust to AROS pthread structure --- compiler/pthread/pthread.c | 4 ++-- compiler/pthread/pthread_intern.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/compiler/pthread/pthread.c b/compiler/pthread/pthread.c index 6536c5bd00..79d39d45e1 100644 --- a/compiler/pthread/pthread.c +++ b/compiler/pthread/pthread.c @@ -124,7 +124,7 @@ static int __m68k_sync_lock_test_and_set(int *v, int n) #define __sync_lock_release(v) __m68k_sync_lock_test_and_set(v, 0) #endif -static BOOL OpenTimerDevice(struct IORequest *io, struct MsgPort *mp, struct Task *task) +BOOL OpenTimerDevice(struct IORequest *io, struct MsgPort *mp, struct Task *task) { BYTE signal; @@ -163,7 +163,7 @@ static BOOL OpenTimerDevice(struct IORequest *io, struct MsgPort *mp, struct Tas #endif } -static void CloseTimerDevice(struct IORequest *io) +void CloseTimerDevice(struct IORequest *io) { struct MsgPort *mp; diff --git a/compiler/pthread/pthread_intern.h b/compiler/pthread/pthread_intern.h index 4091cd568a..c3160dd496 100644 --- a/compiler/pthread/pthread_intern.h +++ b/compiler/pthread/pthread_intern.h @@ -140,3 +140,7 @@ extern int _pthread_cond_broadcast(pthread_cond_t *cond, BOOL onlyfirst); /* .c */ extern int _pthread_mutex_init(pthread_mutex_t *mutex, const pthread_mutexattr_t *attr, BOOL staticinit); + +/* .c */ +extern BOOL OpenTimerDevice(struct IORequest *io, struct MsgPort *mp, struct Task *task); +extern void CloseTimerDevice(struct IORequest *io);