Changeset 499 for trunk/thune/urlan.c

Show
Ignore:
Timestamp:
12/05/07 03:12:00 (12 months ago)
Author:
krobillard
Message:

Added ur_threadDestroy(). Removed ur_threadFree() from public API.
c_string.t should now handle all quotes properly.
Minor fix in GL boot
Documented stack.level.
Increased OpenAL music buffer size and now handle alutInit() failure.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/urlan.c

    r474 r499  
    696696 
    697697 
    698 void _freeResources( UrlanEnv* env, UArray* arr ) 
     698void _freeResources( const UrlanEnv* env, UArray* arr ) 
    699699{ 
    700700    if( arr->used ) 
     
    738738 
    739739 
     740extern void ur_threadFree( UThread* ); 
     741 
    740742/** 
    741743  Release all resources used by env. 
     
    749751        return; 
    750752 
    751     if( (thr = env->threads) ) 
    752     { 
     753    if( env->threads ) 
     754    { 
     755        mutexLock( env->mutex );        // LOCK_GLOBAL 
     756 
     757        thr = env->threads; 
    753758        do 
    754759        { 
     
    759764        while( thr != env->threads ); 
    760765 
     766        mutexUnlock( env->mutex );      // UNLOCK_GLOBAL 
    761767        mutexFree( env->mutex ); 
    762768    }