The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
state.c
Go to the documentation of this file.
1 
12 #include <lib/state/state.h>
13 
14 #include <lib/lib_internal.h>
15 
16 void SetState(void *state)
17 {
18  struct lib_ctx *ctx = lib_ctx_get();
19  ctx->state_s = state;
20 }
21 
22 void state_lib_lp_init(void)
23 {
24  lib_ctx_get()->state_s = NULL;
25 }
lib_internal.h
Internal core libraries.
lib_ctx
Definition: lib.h:17
state.h
LP main state management.