fix: use pointer to dispatcher state in process callback for real-time access
Co-authored-by: aider (deepseek/deepseek-coder) <aider@aider.chat>
This commit is contained in:
@@ -117,6 +117,10 @@ void dispatcher_get_state(AppState *out) {
|
||||
pthread_mutex_unlock(&dispatcher.state_mutex);
|
||||
}
|
||||
|
||||
AppState* dispatcher_get_state_ptr(void) {
|
||||
return &dispatcher.state;
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Reducer implementation
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user