#include "gobj/context.h"
#include "gobj/memory.h"
#include "gobj/idmgr.h"
#include "gobj/errors.h"
#include "gobj/utils.h"
#include <string.h>
Compounds | |
struct | gj_CtxChild_struct |
struct | gj_CtxForkParams_struct |
Typedefs | |
typedef struct gj_CtxForkParams_struct | gj_CtxForkParams |
Internal fork parameter structure. | |
Functions | |
Gj_Ctx* | Gj_ctx_new (Gj_Ctx* ctx) |
Create a new context. More... | |
Gj_Ctx* | Gj_ctx_createInitial () |
Create an initial context. More... | |
int | Gj_ctx_delete (Gj_Ctx* ctx) |
Delete a context structure. More... | |
int | gj_ctx_deleteWithoutUnreg (Gj_Ctx* ctx) |
Delete a context structure without deleting it from the parent's list. More... | |
int | Gj_ctx_deleteChildren (Gj_Ctx* ctx) |
Delete the children of a context. More... | |
Gj_Ctx* | Gj_ctx_flatCopy (Gj_Ctx* ctx) |
Make a flat copy of a context. | |
Gj_Ctx* | Gj_ctx_fork (Gj_Ctx* ctx) |
Fork the given context. | |
Gj_Bool | Gj_ctx_isInit (Gj_Ctx* ctx) |
Check if the context is completely initialized. |
|
Create a new context. A new errormgr is created. System, persona and session are left blank.
|
|
Create an initial context. An initial errormgr is created.
|
|
Delete a context structure. System, persona and session are only being deleted if the context owns them.
|
|
Delete a context structure without deleting it from the parent's list. System, persona and session are only being deleted if the context owns them.
For internal use only. |
|
Delete the children of a context. If a child context has an own thread, try first to shutdown the processing routine of that thread, then kill the thread.
Works the same way any other
|