MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / on_update_slots

Method on_update_slots

smallthinker/tools/server/server.cpp:1628–1630  ·  view source on GitHub ↗

Register the function to be called when all slots data is ready to be processed

Source from the content-addressed store, hash-verified

1626
1627 // Register the function to be called when all slots data is ready to be processed
1628 void on_update_slots(std::function<void(void)> callback) {
1629 callback_update_slots = std::move(callback);
1630 }
1631
1632 // Call when the state of one slot is changed, it will move one task from deferred to main queue
1633 void pop_deferred_task() {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected