* If this is used on a workqueue (dispatch) thread, it MUST be unset with
* pthread_fchdir_np(-1) before returning.
*
* If this is used on a workqueue (dispatch) thread, it MUST be unset with
* pthread_fchdir_np(-1) before returning.
*
* 0 upon success, -1 upon error and errno is set.
*/
__API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0), watchos(3.0))
* 0 upon success, -1 upon error and errno is set.
*/
__API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0), watchos(3.0))
* directory fd. If this is used on a workqueue (dispatch) thread, it MUST be
* unset with pthread_fchdir_np(-1) before returning.
*
* directory fd. If this is used on a workqueue (dispatch) thread, it MUST be
* unset with pthread_fchdir_np(-1) before returning.
*
* @param fd
* A file descriptor to the new working directory. Pass -1 to unset the
* per-thread working directory.
* @param fd
* A file descriptor to the new working directory. Pass -1 to unset the
* per-thread working directory.
__API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
int pthread_attr_setcpupercent_np(pthread_attr_t * __restrict, int, unsigned long);
__API_AVAILABLE(macos(10.14), ios(12.0), tvos(12.0), watchos(5.0))
int pthread_attr_setcpupercent_np(pthread_attr_t * __restrict, int, unsigned long);