Home
last modified time | relevance | path

Searched refs:rsrc_id (Results 1 – 2 of 2) sorted by relevance

/PHP-7.0/TSRM/
H A DTSRM.h108 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo…
163 #define TSRM_SHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)+1) argument
164 #define TSRM_UNSHUFFLE_RSRC_ID(rsrc_id) ((rsrc_id)-1) argument
H A DTSRM.c219 TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allo… in ts_allocate_id() argument
228 *rsrc_id = TSRM_SHUFFLE_RSRC_ID(id_count++); in ts_allocate_id()
229 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Obtained resource id %d", *rsrc_id)); in ts_allocate_id()
237 *rsrc_id = 0; in ts_allocate_id()
242 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].size = size; in ts_allocate_id()
243 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].ctor = ctor; in ts_allocate_id()
244 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].dtor = dtor; in ts_allocate_id()
245 resource_types_table[TSRM_UNSHUFFLE_RSRC_ID(*rsrc_id)].done = 0; in ts_allocate_id()
269 TSRM_ERROR((TSRM_ERROR_LEVEL_CORE, "Successfully allocated new resource id %d", *rsrc_id)); in ts_allocate_id()
270 return *rsrc_id; in ts_allocate_id()

Completed in 7 milliseconds