2022-03-15 13:29:32 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-02-25 10:26:26 +01:00
|
|
|
<class name="ThreadPool" inherits="Object" version="4.3">
|
2022-03-15 13:29:32 +01:00
|
|
|
<brief_description>
|
|
|
|
</brief_description>
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="add_job">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="job" type="ThreadPoolJob" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2022-10-09 12:43:55 +02:00
|
|
|
<method name="apply_max_work_per_frame_percent">
|
|
|
|
<return type="void" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2022-03-15 13:29:32 +01:00
|
|
|
<method name="cancel_job">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="job" type="ThreadPoolJob" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="cancel_job_wait">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="job" type="ThreadPoolJob" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="has_job">
|
|
|
|
<return type="bool" />
|
|
|
|
<argument index="0" name="job" type="ThreadPoolJob" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
2022-09-10 04:18:55 +02:00
|
|
|
<method name="is_working" qualifiers="const">
|
|
|
|
<return type="bool" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_working_no_lock" qualifiers="const">
|
|
|
|
<return type="bool" />
|
2022-03-15 13:29:32 +01:00
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="update">
|
|
|
|
<return type="void" />
|
|
|
|
<description>
|
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<members>
|
|
|
|
<member name="max_time_per_frame" type="float" setter="set_max_time_per_frame" getter="get_max_time_per_frame" default="0.00416667">
|
|
|
|
</member>
|
|
|
|
<member name="max_work_per_frame_percent" type="float" setter="set_max_work_per_frame_percent" getter="get_max_work_per_frame_percent" default="25.0">
|
|
|
|
</member>
|
2022-10-09 12:43:55 +02:00
|
|
|
<member name="target_fps" type="float" setter="set_target_fps" getter="get_target_fps" default="60.0">
|
|
|
|
</member>
|
2022-11-20 23:27:04 +01:00
|
|
|
<member name="thread_count" type="int" setter="set_thread_count" getter="get_thread_count" default="5">
|
2022-03-15 13:29:32 +01:00
|
|
|
</member>
|
|
|
|
<member name="thread_fallback_count" type="int" setter="set_thread_fallback_count" getter="get_thread_fallback_count" default="4">
|
|
|
|
</member>
|
|
|
|
<member name="use_threads" type="bool" setter="set_use_threads" getter="get_use_threads" default="true">
|
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|