Differences From Artifact [b6a6f32a2b]:
- File src/platform/morphos/tlskey.m — part of check-in [c75596237e] at 2020-12-06 01:54:02 on branch trunk — Use OS-native TLS keys on MorphOS (user: js, size: 816) [annotate] [blame] [check-ins using] [more...]
To Artifact [ac011a1581]:
- File
src/platform/morphos/tlskey.m
— part of check-in
[5b37fbeb82]
at
2020-12-20 21:26:08
on branch trunk
— Return error instead of using errno for threading
errno is problematic for Amiga libraries and is also not thread-safe on
some systems, even though it should. (user: js, size: 859) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
15 16 17 18 19 20 21 | * file. */ #include "config.h" #import "tlskey.h" | < > | | > > > > | > | | 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | * file. */ #include "config.h" #import "tlskey.h" int of_tlskey_new(of_tlskey_t *key) { *key = TLSAllocA(NULL); if (*key == TLS_INVALID_INDEX) return EAGAIN; return 0; } int of_tlskey_free(of_tlskey_t key) { return (TLSFree(key) ? 0 : EINVAL); } |