MCPcopy Create free account
hub / github.com/coreboot/coreboot / thread_coop_enable

Function thread_coop_enable

src/lib/thread.c:378–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void thread_coop_enable(void)
379{
380 struct thread *current;
381
382 current = current_thread();
383
384 if (current == NULL)
385 return;
386
387 assert(current->can_yield <= 0);
388
389 current->can_yield++;
390}
391
392void thread_coop_disable(void)
393{

Callers 1

spin_unlockFunction · 0.50

Calls 1

current_threadFunction · 0.85

Tested by

no test coverage detected