2019-09-02 18:59:36 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 27.08.2019
|
|
|
|
*
|
|
|
|
* Models based arena constructors
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
2019-10-01 02:06:21 +00:00
|
|
|
internal Arena*
|
|
|
|
reserve_arena(Models *models, umem chunk_size, umem align){
|
|
|
|
Thread_Context *tctx = models->tctx;
|
|
|
|
return(reserve_arena(tctx, chunk_size, align));
|
2019-09-02 18:59:36 +00:00
|
|
|
}
|
|
|
|
|
2019-10-01 02:06:21 +00:00
|
|
|
internal Arena*
|
|
|
|
reserve_arena(Models *models, umem chunk_size){
|
|
|
|
Thread_Context *tctx = models->tctx;
|
|
|
|
return(reserve_arena(tctx, chunk_size));
|
2019-09-02 18:59:36 +00:00
|
|
|
}
|
|
|
|
|
2019-10-01 02:06:21 +00:00
|
|
|
internal Arena*
|
|
|
|
reserve_arena(Models *models){
|
|
|
|
Thread_Context *tctx = models->tctx;
|
|
|
|
return(reserve_arena(tctx));
|
|
|
|
}
|
|
|
|
|
|
|
|
internal void
|
|
|
|
release_arena(Models *models, Arena *arena){
|
|
|
|
Thread_Context *tctx = models->tctx;
|
|
|
|
release_arena(tctx, arena);
|
2019-09-02 18:59:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|