LPLASERDEC LASeR_NewDecoder(LPSCENEGRAPH scenegraph) { LASeRDecoder * tmp; SAFEALLOC(tmp, sizeof(LASeRDecoder)); tmp->scenegraph = scenegraph; if (!scenegraph) { tmp->dec_memory_mode = 1; tmp->conditionals = NewChain(); } tmp->current_graph = NULL; tmp->mx = NewMutex(); return tmp; }
long CThreadResource::NewLock( const str::t_char8* x_sName, bool x_bInitialOwner ) { return NewMutex( x_sName, x_bInitialOwner ); }