MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / enqueuePinnedAndUnlock

Method enqueuePinnedAndUnlock

modules/core/task/src/task2.cpp:344–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342 }
343
344 void enqueuePinnedAndUnlock(Task&& task)
345 {
346 SkrZoneScopedN("EnqueueTaskWorker");
347 auto notify = work.notifyAdded;
348 work.pinnedTask.push_back(std::move(task));
349 work.num++;
350 skr_mutex_release(&work.mutex);
351 if (notify)
352 {
353 skr_wake_condition_var(&work.added);
354 }
355 }
356
357 bool steal(Task& out)
358 {

Callers 1

enqueueFunction · 0.80

Calls 4

moveFunction · 0.50
skr_mutex_releaseFunction · 0.50
skr_wake_condition_varFunction · 0.50
push_backMethod · 0.45

Tested by

no test coverage detected