mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Include SWIFT_CC annotation
This commit is contained in:
@@ -1074,7 +1074,7 @@ void swift_task_donateThreadToGlobalExecutorUntil(bool (*condition)(void*),
|
||||
|
||||
/// Set whether or not the concurrency library is tracking the time spent
|
||||
/// running tasks. Returns the old value.
|
||||
SWIFT_EXPORT_FROM(swift_Concurrency)
|
||||
SWIFT_EXPORT_FROM(swift_Concurrency) SWIFT_CC(swift)
|
||||
__attribute__((__cold__)) bool
|
||||
_swift_task_setTimeSpentRunningTracked(bool isTracked);
|
||||
|
||||
|
||||
@@ -226,11 +226,13 @@ swift_task_donateThreadToGlobalExecutorUntil(bool (*condition)(void *),
|
||||
return swift_task_donateThreadToGlobalExecutorUntilOrig(condition, context);
|
||||
}
|
||||
|
||||
SWIFT_CC(swift)
|
||||
__attribute__((__cold__)) bool
|
||||
_swift_task_setTimeSpentRunningTracked(bool isTracked) {
|
||||
return AsyncTask::setTimeSpentRunningTracked(isTracked);
|
||||
}
|
||||
|
||||
SWIFT_CC(swift)
|
||||
__attribute__((__cold__)) bool
|
||||
_swift_task_getTimeSpentRunning(AsyncTask *task, uint64_t *outNanoseconds) {
|
||||
*outNanoseconds = task->getTimeSpentRunning();
|
||||
|
||||
Reference in New Issue
Block a user