Overview
Comment: | Add threads for AmigaOS |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
da383f4f038cde23942d035580cf6149 |
User & Date: | js on 2019-08-03 18:13:50 |
Other Links: | manifest | tags |
Context
2019-08-04
| ||
19:33 | Amiga: Add the new __bss_size to data segment size check-in: a15919c6d8 user: js tags: trunk | |
2019-08-03
| ||
18:13 | Add threads for AmigaOS check-in: da383f4f03 user: js tags: trunk | |
2019-08-02
| ||
12:24 | Minor improvements for threads on Windows check-in: 3c865f9e41 user: js tags: trunk | |
Changes
Modified src/OFThread.m from [83f93c8053] to [0f6e6aa5d7].
︙ | |||
144 145 146 147 148 149 150 | 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 | - - + + | else # endif thread->_returnValue = [[thread main] retain]; } [thread handleTermination]; |
︙ | |||
329 330 331 332 333 334 335 336 337 338 339 340 341 342 | 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | + + | { OFThread *thread = of_tlskey_get(threadSelfKey); OF_ENSURE(thread != nil); thread->_returnValue = [object retain]; longjmp(thread->_exitEnv, 1); OF_UNREACHABLE } + (void)setName: (OFString *)name { [OFThread currentThread].name = name; if (name != nil) |
︙ |
Modified src/mutex_amiga.m from [07f9094daa] to [7de22b2897].
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | + + + + + + + + + | * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #ifdef OF_AMIGAOS4 # define __USE_INLINE__ # define __NOLIBBASE__ # define __NOGLOBALIFACE__ #endif #include <proto/exec.h> #ifdef OF_AMIGAOS4 extern struct ExecIFace *IExec; #endif bool of_mutex_new(of_mutex_t *mutex) { InitSemaphore(mutex); return true; |
︙ |
Modified src/thread.h from [a6bfb58593] to [a4fe604036].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | - + + + + + + + + + + + + + - + - + + + + | */ #include "objfw-defs.h" #include "platform.h" #if !defined(OF_HAVE_THREADS) || \ |
︙ |
Modified src/thread.m from [97cad1fce3] to [4db82960e0].
︙ | |||
19 20 21 22 23 24 25 26 | 19 20 21 22 23 24 25 26 27 28 | + + | #import "thread.h" #if defined(OF_HAVE_PTHREADS) # include "thread_pthread.m" #elif defined(OF_WINDOWS) # include "thread_winapi.m" #elif defined(OF_AMIGAOS) # include "thread_amiga.m" #endif |
Added src/thread_amiga.m version [a7fd919f6d].