예제 #1
0
파일: init.c 프로젝트: brkt/fuse-xfs
void
ts_init(void)
{

	/* allocate thread specific storage */
	ts_alloc(dirbuf_key, 1, ts_dirbuf_size);
	ts_alloc(dir_freemap_key, 1, ts_dir_freemap_size);
	ts_alloc(attr_freemap_key, 1, ts_attr_freemap_size);
}
예제 #2
0
파일: tstate.c 프로젝트: ncbi/ncbi-vdb
/* Make
 */
static
KThreadEvtNode * KThreadEvtNodeMake ( ctx_t ctx )
{
    KThreadEvtNode * node = ts_alloc ( sizeof * node, true );
    node -> loc = ctx -> loc;
    node -> zdepth = ctx -> zdepth;
    return node;
}
예제 #3
0
파일: tstate.c 프로젝트: ncbi/ncbi-vdb
/* MakeThreadState
 *  creates state for a newly created thread
 *  called from the new thread
 */
KThreadState * KProcMgrMakeThreadState ( struct KProcMgr const * self )
{
    if ( self != NULL )
    {
        KThreadState * tstate = ts_alloc ( sizeof * tstate, true );
        return tstate;
    }

    return NULL;
}