pcntl_getqos_class

(PHP 8 >= 8.4.0)

pcntl_getqos_classGet the QoS class of the current thread

说明

function pcntl_getqos_class(): Pcntl\QosClass

Retrieves the Quality of Service (QoS) class of the current thread.

注意: This function is only available on Apple platforms.

参数

此函数没有参数。

返回值

Returns the current QoS class as a Pcntl\QosClass.

错误/异常

Throws an Error if the underlying call to pthread_get_qos_class_np() fails.

参见