We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a076d54 + ffd1ad2 commit 568b682Copy full SHA for 568b682
stdlib/public/Concurrency/TaskGroup.cpp
@@ -35,10 +35,6 @@
35
#include <atomic>
36
#include <new>
37
38
-#if !SWIFT_STDLIB_SINGLE_THREADED_CONCURRENCY
39
-#include <mutex>
40
-#endif
41
-
42
#if SWIFT_STDLIB_HAS_ASL
43
#include <asl.h>
44
#elif defined(__ANDROID__)
@@ -310,7 +306,7 @@ class TaskGroupBase : public TaskGroupTaskStatusRecord {
310
306
void unlock() const {}
311
307
#else
312
308
// TODO: move to lockless via the status atomic (make readyQueue an mpsc_queue_t<ReadyQueueItem>)
313
- mutable std::mutex mutex_;
309
+ mutable Mutex mutex_;
314
315
void lock() const { mutex_.lock(); }
316
void unlock() const { mutex_.unlock(); }
0 commit comments