Commit graph

10 commits

Author SHA1 Message Date
Hugo Melder
273776a3c6
Fix CI and make libcurl a hard-dependency when using libobjc2 (#447)
* Do not enable Win32 threads and locks when using GCC

* Fix compiler check when CC has arguments appended

* Add NSConstantString literal as global variable to avoid linker error

* Make libcurl a hard-dependency on ObjC 2.0 Toolchain

* Bump TOOLS_WINDOWS_MSVC_RELEASE_TAG

* Remove x86 runner for MSVC toolchain

* Add libcurl to MinGW x64 Clang toolchain

* MSVC toolchain requires Windows 1903 and newer but windows-2019 runner is Redstone 5 (1809)

* MinGW GCC adds .exe suffix

* Some tests timeout after 30s. Increase timeout

* Mark late unregister as hopeful on Win32 with GCC

* Mark NSURL test depending on network connection as hopeful
2024-10-10 11:16:47 +02:00
hmelder
3c3417fabe Remove Windows Include and correctly release thread obj 2024-04-28 23:22:20 +02:00
hmelder
80c3d66677 Add NSThread unit test for name: and setName: on win32 2024-04-28 23:22:20 +02:00
Frederik Seiffert
abfe4e2a04 Use native threading and locking APIs on Windows
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.

Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
1be8a1375a tidy whitespace 2020-05-29 16:24:59 +01:00
Richard Frith-Macdonald
4da65fa4ff Add tests for exactly when notification of thread exit occurs 2020-05-26 16:26:35 +01:00
Richard Frith-MacDonald
cf0e598b62 link with pthread library on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39468 72102866-910b-0410-8b05-ffd578937521
2016-03-05 19:36:27 +00:00
Niels Grewe
b0afa17bed Add automatic unregistration of threads that have not been
been explicitly unregistered. This works by keeping around 
a map table with all threads currently undergoing cleanup, 
and using that as a fallback if pthread_getspecific would
not return the NSThread object from TLS. 


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39318 72102866-910b-0410-8b05-ffd578937521
2016-01-29 13:42:07 +00:00
Richard Frith-MacDonald
a79dd60102 Impement test for main thread on linux
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38443 72102866-910b-0410-8b05-ffd578937521
2015-03-31 09:45:40 +00:00
David Chisnall
72b55444fb Added some tests for lazy allocated thread behaviour.
These show deviation from OS X behaviour (the first test passes by accident - it's actually doing the wrong thing in two different ways that cancel each other out).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33520 72102866-910b-0410-8b05-ffd578937521
2011-07-11 14:07:16 +00:00