MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / trap_background_set_complete

Function trap_background_set_complete

src/traps.cpp:757–771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

755}
756
757void trap_background_set_complete(TrapContext *ctx)
758{
759 if (!trap_is_indirect())
760 return;
761 if (!ctx || !ctx->trap_background)
762 return;
763 atomic_dec(&ctx->trap_background);
764 if (!ctx->trap_background) {
765 if (!ctx->trap_done) {
766 write_log(_T("trap_background_set_complete(%d) still waiting!?\n"), ctx->tindex);
767 while (!ctx->trap_done);
768 }
769 hardware_trap_ack(ctx);
770 }
771}
772
773void trap_dos_active(void)
774{

Callers 5

filesys_iterationFunction · 0.85
dev_threadFunction · 0.85
dev_threadFunction · 0.85
dev_threadFunction · 0.85
hardfile_threadFunction · 0.85

Calls 4

trap_is_indirectFunction · 0.85
atomic_decFunction · 0.85
hardware_trap_ackFunction · 0.85
write_logFunction · 0.70

Tested by

no test coverage detected