[os overlay] os_activity_t overlay

Originator:zach
Number:rdar://33213530 Date Originated:July 10 2017, 11:53 AM
Status:Open Resolved:false
Product:Developer Tools Product Version:Xcode version 9.0 Beta 2 (9M137d) / swiftlang 900.0.45.6
Classification:Enhancement Reproducible:N/A
 
Summary:
os_activity_t lacks a Swift overlay/apinotes. The work blocking this has already been done in the os headers/compiler for the Dispatch overlay. (With the exception of an OS_OPTIONS macro, see below.) See notes for precise steps.

Steps to Reproduce:
1. Have the desire to use os_activity_t from Swift.
2. Attempt to use os_activity_t from Swift.

Expected Results:
I can use os_activity_t from Swift.

Observed Results:
I cannot.

Version:
Xcode version 9.0 Beta 2 (9M137d) / swiftlang 900.0.45.6

Notes:
- OS_OBJECT_DECL(os_activity) to OS_OBJECT_DECL_CLASS(os_activity)
- os_activity_t made Swift unavailable
- OS_os_activity mapped to OSActivity
- OS_ENUM(os_activity_flag, …) declared as OS_OPTIONS
- OS_OPTIONS declared to use __attribute__((flag_enum)) or added to swift/lib/ClangImporter/ImportEnumInfo.cpp.
- os_activity_flag to OSActivity.Options
- _os_activity_create to OSActivity.init(__dso:description:parent:options:)
- OSActivity.init(_:parent:options:dso:) implemented in overlay
- os_activity_apply to OSActivity.__apply(_:)
- OSActivity.withActive(execute:) implemented in overlay
- os_activity_scope_state_s to OSActivity.Scope
- os_activity_scope_leave to OSActivity.Scope.leave()
- os_activity_scope_enter to OSActivity.enter()
- _os_activity_label_useraction to OSActivity.Type.__labelUserAction(_:dso:)
- OSActivity.Type.labelUserAction(_:dso:) implemented in overlay
- OS_ACTIVITY_NONE to OSActivity.none via __swift_os_activity_none() shim
- Same w/ OS_ACTIVITY_CURRENT

Configuration:
N/A

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!