threading / _thread 原生线程和同步原语。

固定源码版本:2f2318653f6f794dddd321eff7c9d4b7b174643f。本表共 71 条静态出现记录;不是运行次数。

同一个直接 API 表达式只记为 api_call 或 api_reference 中的一类。实例候选不计入直接原生 API 总数。

总览 · 完整文件索引 · JSON · TSV

ID位置 / 快照所属符号种类API / 语法来源判定源码行
occ-000468slime/agent/aiohttp_threaded.py:6 · 快照<module>importthreadingexplicit_importimport threading
occ-000469slime/agent/aiohttp_threaded.py:29 · 快照AppHandleapi_referencethreading.Threadlexical_import_resolutionthread: threading.Thread
occ-000477slime/agent/aiohttp_threaded.py:61 · 快照run_app_in_threadapi_callthreading.Eventlexical_import_resolutionstarted = threading.Event()
occ-000486slime/agent/aiohttp_threaded.py:87 · 快照run_app_in_threadapi_callthreading.Threadlexical_import_resolutionthread = threading.Thread(target=_run, name=thread_name, daemon=True)
occ-000569slime/backends/megatron_utils/server/megatron_server.py:3 · 快照<module>importthreadingexplicit_importimport threading
occ-000638slime/backends/megatron_utils/server/megatron_server.py:616 · 快照_start_http_serverapi_callthreading.Threadlexical_import_resolutionstats_thread = threading.Thread(
occ-000734slime/data/archive.py:56 · 快照RolloutArchive.saveimportthreadingexplicit_importimport threading
occ-000735slime/data/archive.py:66 · 快照RolloutArchive.saveapi_callthreading.RLocklexical_import_resolutioncodec, lock = SampleCodec(store, args=args), threading.RLock()
occ-000747slime/data/queue_data_source.py:16 · 快照<module>importthreadingexplicit_importimport threading
occ-000754slime/data/queue_data_source.py:147 · 快照RolloutQueueController.initapi_callthreading.Locklexical_import_resolutionself._producer_lock = threading.Lock()
occ-000755slime/data/queue_data_source.py:153 · 快照RolloutQueueController.initapi_callthreading.RLocklexical_import_resolutionself._training_lock = threading.RLock()
occ-000756slime/data/queue_data_source.py:154 · 快照RolloutQueueController.initapi_callthreading.Eventlexical_import_resolutionself._gc_stop = threading.Event()
occ-000757slime/data/queue_data_source.py:184 · 快照RolloutQueueController._start_gcapi_callthreading.Threadlexical_import_resolutionself._gc_thread = threading.Thread(target=self._gc_loop, name=“straw-gc”, daemon=True)
occ-000799slime/data/queue_data_source.py:1034 · 快照QueueReader.initapi_callthreading.RLocklexical_import_resolutionself._lock = threading.RLock()
occ-000801slime/data/queue_data_source.py:1036 · 快照QueueReader.initapi_callthreading.Eventlexical_import_resolutionself._stop = threading.Event()
occ-000802slime/data/queue_data_source.py:1044 · 快照QueueReader.initapi_callthreading.Threadlexical_import_resolutionself._heartbeats = threading.Thread(target=self._heartbeat_loop, name=“queue-leases”, daemon=True)
occ-000824slime/data/transport.py:8 · 快照<module>importthreadingexplicit_importimport threading
occ-000825slime/data/transport.py:25 · 快照<module>api_callthreading.Locklexical_import_resolution_writers_lock = threading.Lock()
occ-000830slime/data/transport.py:105 · 快照rollout_storeapi_callthreading.RLocklexical_import_resolution_writers[key] = (store, threading.RLock())
occ-000911slime/rollout/fully_async_distributed.py:6 · 快照<module>importthreadingexplicit_importimport threading
occ-000912slime/rollout/fully_async_distributed.py:60 · 快照RolloutScheduler.initapi_callthreading.Conditionlexical_import_resolutionself.condition = threading.Condition()
occ-000924slime/rollout/fully_async_distributed.py:177 · 快照RolloutScheduler.generateapi_callthreading.Threadlexical_import_resolutionself.thread = threading.Thread(target=self._run, name=“rollout-collect”, daemon=True)
occ-001024slime/rollout/fully_async_rollout.py:34 · 快照<module>importthreadingexplicit_importimport threading
occ-001027slime/rollout/fully_async_rollout.py:88 · 快照AsyncRolloutWorker.initapi_callthreading.Conditionlexical_import_resolutionself.condition = threading.Condition()
occ-001030slime/rollout/fully_async_rollout.py:99 · 快照AsyncRolloutWorker.initapi_referencethreading.Threadlexical_import_resolutionself.worker_thread: threading.Thread | None = None
occ-001032slime/rollout/fully_async_rollout.py:106 · 快照AsyncRolloutWorker.startapi_callthreading.Threadlexical_import_resolutionself.worker_thread = threading.Thread(target=self._thread_main, name=“fully-async-rollout”, daemon=True)
occ-001191slime/utils/accelerator/init.py:14 · 快照<module>importthreadingexplicit_importimport threading
occ-001192slime/utils/accelerator/init.py:39 · 快照<module>api_callthreading.RLocklexical_import_resolution_SELECTION_LOCK = threading.RLock()
occ-001197slime/utils/async_utils.py:2 · 快照<module>importthreadingexplicit_importimport threading
occ-001208slime/utils/async_utils.py:49 · 快照AsyncLoopThread.initapi_callthreading.Threadlexical_import_resolutionself._thread = threading.Thread(target=self._start_loop, daemon=True)
occ-001218slime/utils/health_monitor.py:2 · 快照<module>importthreadingexplicit_importimport threading
occ-001219slime/utils/health_monitor.py:27 · 快照RolloutHealthMonitor.initapi_callthreading.Eventlexical_import_resolutionself._stop_event = threading.Event()
occ-001220slime/utils/health_monitor.py:28 · 快照RolloutHealthMonitor.initapi_callthreading.Eventlexical_import_resolutionself._pause_event = threading.Event()
occ-001222slime/utils/health_monitor.py:34 · 快照RolloutHealthMonitor.initapi_callthreading.Locklexical_import_resolutionself._check_lock = threading.Lock()
occ-001225slime/utils/health_monitor.py:53 · 快照RolloutHealthMonitor.startapi_callthreading.Threadlexical_import_resolutionself._thread = threading.Thread(
occ-001296slime/utils/routed_experts.py:4 · 快照<module>importthreadingexplicit_importimport threading
occ-001305slime/utils/routed_experts.py:213 · 快照RoutedExpertsMicrobatch.initapi_callthreading.Locklexical_import_resolutionself._lock = threading.Lock()
occ-001311slime_plugins/rollout_buffer/buffer.py:6 · 快照<module>importthreadingexplicit_importimport threading
occ-001314slime_plugins/rollout_buffer/buffer.py:232 · 快照RolloutBuffer.initapi_callthreading.RLocklexical_import_resolutionself.lock = threading.RLock()
occ-001315slime_plugins/rollout_buffer/buffer.py:233 · 快照RolloutBuffer.initapi_callthreading.Conditionlexical_import_resolutionself.not_empty = threading.Condition(self.lock)
occ-001404tests/pipeline_rl_test_helpers.py:5 · 快照<module>importthreadingexplicit_importimport threading
occ-001407tests/pipeline_rl_test_helpers.py:46 · 快照GenerationProbe.initapi_callthreading.Conditionlexical_import_resolutionself.condition = threading.Condition()
occ-001408tests/pipeline_rl_test_helpers.py:49 · 快照GenerationProbe.initapi_callthreading.Threadlexical_import_resolutionself.thread = threading.Thread(target=self.run, daemon=True)
occ-001632tests/test_distributed_rollout.py:9 · 快照<module>importthreadingexplicit_importimport threading
occ-001656tests/test_distributed_rollout.py:602 · 快照test_slow_task_acquire_does_not_block_async_generationapi_callthreading.Eventlexical_import_resolutionentered, release = threading.Event(), threading.Event()
occ-001657tests/test_distributed_rollout.py:602 · 快照test_slow_task_acquire_does_not_block_async_generationapi_callthreading.Eventlexical_import_resolutionentered, release = threading.Event(), threading.Event()
occ-001676tests/test_distributed_rollout.py:672 · 快照scheduler_factory.createapi_callthreading.Eventlexical_import_resolutionrelease = threading.Event()
occ-001697tests/test_distributed_rollout.py:811 · 快照test_slow_worker_control_does_not_block_collection_or_closeapi_callthreading.Eventlexical_import_resolutionentered = threading.Event()
occ-001787tests/test_distributed_rollout.py:2010 · 快照test_background_gc_failure_stops_queue_work_and_fails_closeapi_callthreading.Threadlexical_import_resolutioncontroller._gc_thread = threading.Thread(target=controller._gc_loop)
occ-001824tests/test_fully_async_rollout.py:23 · 快照<module>importthreadingexplicit_importimport threading
occ-001833tests/test_fully_async_rollout.py:218 · 快照test_done_callback_never_blocks_event_loop_threadapi_callthreading.Threadlexical_import_resolutionpusher = threading.Thread(target=_push_all, daemon=True)
occ-001863tests/test_published_payload_retry.py:5 · 快照<module>importthreadingexplicit_importimport threading
occ-001867tests/test_published_payload_retry.py:36 · 快照test_result_and_shelve_payloads_recover_at_the_storage_layerapi_callthreading.Timerlexical_import_resolutiontimer = threading.Timer(0.05, restore)
occ-001984tests/test_score_centering_binary.py:3 · 快照<module>importthreadingexplicit_importimport threading
occ-001985tests/test_score_centering_binary.py:96 · 快照test_http_worker_decodes_off_event_loopapi_callthreading.get_identlexical_import_resolutionmain_thread = threading.get_ident()
occ-001986tests/test_score_centering_binary.py:101 · 快照test_http_worker_decodes_off_event_loop.decodeapi_callthreading.get_identlexical_import_resolutioncalls.append(threading.get_ident())
occ-002060tests/test_straw_fully_async_recovery.py:15 · 快照<module>importthreadingexplicit_importimport threading
occ-002073tests/test_straw_fully_async_recovery.py:132 · 快照_run_jobapi_callthreading.Threadlexical_import_resolutionthread = threading.Thread(target=generate, daemon=True)
occ-002075tests/test_straw_fully_async_recovery.py:158 · 快照_run_jobapi_callthreading.Eventlexical_import_resolutionthreading.Event().wait()
occ-002092tests/test_straw_r3.py:2 · 快照<module>importthreadingexplicit_importimport threading
occ-002095tests/test_straw_r3.py:143 · 快照test_cancelled_straw_publication_drains_before_releasing_capacityapi_callthreading.Eventlexical_import_resolutionentered, release = threading.Event(), threading.Event()
occ-002096tests/test_straw_r3.py:143 · 快照test_cancelled_straw_publication_drains_before_releasing_capacityapi_callthreading.Eventlexical_import_resolutionentered, release = threading.Event(), threading.Event()
occ-002230tests/test_training_recovery.py:292 · 快照test_recovery_e2e_contacts_dashboard_without_proxyimportthreadingexplicit_importimport threading
occ-002233tests/test_training_recovery.py:339 · 快照test_recovery_e2e_contacts_dashboard_without_proxyapi_callthreading.Threadlexical_import_resolutionthread = threading.Thread(target=server.serve_forever, daemon=True)
occ-002249tools/convert_hf_to_fp8.py:22 · 快照<module>importthreadingexplicit_importimport threading
occ-002251tools/convert_hf_to_fp8.py:105 · 快照ConversionResult.initapi_callthreading.Locklexical_import_resolutionself.lock = threading.Lock()
occ-002255tools/convert_hf_to_int4_direct.py:16 · 快照<module>importthreadingexplicit_importimport threading
occ-002257tools/convert_hf_to_int4_direct.py:158 · 快照ConversionResult.initapi_callthreading.Locklexical_import_resolutionself.lock = threading.Lock()
occ-002262tools/convert_torch_dist_to_hf_parallel.py:8 · 快照<module>importthreadingexplicit_importimport threading
occ-002265tools/convert_torch_dist_to_hf_parallel.py:43 · 快照WrappedStorageReader.initapi_callthreading.Locklexical_import_resolutionself._cache_lock = threading.Lock() if max_workers and max_workers > 1 else None
occ-002272tools/convert_torch_dist_to_hf_parallel.py:284 · 快照save_tensorsapi_callthreading.Locklexical_import_resolutionlock = threading.Lock()

返回分类索引 · 返回学习首页