feat: establish the bounded production architecture
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#include "application.h"
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
bool application_enqueue(application_t *application, const app_command_t *command) {
|
||||
return application != NULL && command_queue_push(&application->command_queue, command);
|
||||
}
|
||||
|
||||
bool application_take_next_command(application_t *application, app_command_t *command) {
|
||||
return application != NULL && command_queue_pop(&application->command_queue, command);
|
||||
}
|
||||
Reference in New Issue
Block a user