File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
//
11
11
// ===----------------------------------------------------------------------===//
12
12
13
+ #include " swift/Runtime/Config.h"
13
14
#include " swift/Runtime/Mutex.h"
14
15
15
16
namespace swift {
16
17
// return the size in words for the given mutex primitive
17
- extern " C"
18
+ extern " C" SWIFT_CC(swift)
18
19
size_t _swift_async_stream_lock_size () {
19
20
size_t words = sizeof (MutexHandle) / sizeof (void *);
20
21
if (words < 1 ) { return 1 ; }
21
22
return words;
22
23
}
23
24
24
- extern " C"
25
+ extern " C" SWIFT_CC(swift)
25
26
void _swift_async_stream_lock_init (MutexHandle &lock) {
26
27
MutexPlatformHelper::init (lock);
27
28
}
28
29
29
- extern " C"
30
+ extern " C" SWIFT_CC(swift)
30
31
void _swift_async_stream_lock_lock (MutexHandle &lock) {
31
32
MutexPlatformHelper::lock (lock);
32
33
}
33
34
34
- extern " C"
35
+ extern " C" SWIFT_CC(swift)
35
36
void _swift_async_stream_lock_unlock (MutexHandle &lock) {
36
37
MutexPlatformHelper::unlock (lock);
37
38
}
You can’t perform that action at this time.
0 commit comments