MCPcopy Create free account
hub / github.com/Snapchat/Valdi / Timer

Class Timer

tsn/src/tsn/tsn.cpp:410–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410struct Timer {
411 int64_t id;
412 tsn_vm* ctx;
413 tsn_value_const func;
414 std::vector<tsn_value_const> args;
415
416 void dispose() {
417 JS_FreeValue(ctx, func);
418 for (auto& arg : args) {
419 JS_FreeValue(ctx, arg);
420 }
421 }
422};
423static int64_t next_timer_id = 0;
424static std::multimap<std::chrono::steady_clock::time_point, Timer> active_timers;
425

Callers 1

onBitmapUnusedMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected