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.
1 parent 41f1285 commit ea6cae6Copy full SHA for ea6cae6
include/swift/Runtime/MutexSingleThreaded.h
@@ -17,6 +17,8 @@
17
#ifndef SWIFT_RUNTIME_MUTEX_SINGLE_THREADED_H
18
#define SWIFT_RUNTIME_MUTEX_SINGLE_THREADED_H
19
20
+#include "swift/Runtime/Debug.h"
21
+
22
namespace swift {
23
24
typedef void* ConditionHandle;
@@ -35,7 +37,9 @@ struct ConditionPlatformHelper {
35
37
static void destroy(ConditionHandle &condition) {}
36
38
static void notifyOne(ConditionHandle &condition) {}
39
static void notifyAll(ConditionHandle &condition) {}
- static void wait(ConditionHandle &condition, MutexHandle &mutex);
40
+ static void wait(ConditionHandle &condition, MutexHandle &mutex) {
41
+ fatalError(0, "single-threaded runtime cannot wait for condition");
42
+ }
43
};
44
45
struct MutexPlatformHelper {
0 commit comments