Changeset 421

Show
Ignore:
Timestamp:
06/30/07 08:14:02 (1 year ago)
Author:
krobillard
Message:

Mutex now initialized before use.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/thune/thread_safe/urlan.c

    r418 r421  
    9797    "port!", 
    9898    "struct!", 
    99     "component!", 
    100     "plug!" 
     99    "component!" 
    101100}; 
    102101 
     
    251250    FIXED_ATOM( "devices",     7, UR_ATOM_DEVICES ) 
    252251    FIXED_ATOM( "os",    2, UR_ATOM_OS ) 
     252    FIXED_ATOM( "self",  4, UR_ATOM_SELF ) 
    253253 
    254254    // If/ opcode 
     
    484484    // Init main thread. 
    485485 
    486     ut = ur_threadMake( env, 512, 1024 ); 
    487  
    488486    if( mutexInit( env->mutex ) == -1 ) 
    489487    { 
     
    493491        return UR_EVAL_ERROR; 
    494492    } 
     493 
     494    ut = ur_threadMake( env, 512, 1024 ); 
    495495 
    496496    // Make hold & global context blocks. 
     
    832832 
    833833/** 
    834   ur_resolvePathT is provided as a fast but still convenient method of 
     834  ur_resolvePath is provided as a fast but still convenient method of 
    835835  resolving paths from C code. 
    836836 
  • branches/thune/thread_safe/urlan.h

    r418 r421  
    7979#define UT_STRUCT       37 
    8080#define UT_COMPONENT    38 
    81 #define UT_PLUG         39 
    82  
    83 #define UT_BI_COUNT     40 
     81 
     82#define UT_BI_COUNT     39 
    8483#define UT_MAX          64 
    8584#define UT_TYPEMASK     99 
     
    204203 
    205204 
     205#if 0 
    206206typedef struct 
    207207{ 
     
    214214} 
    215215UCellComponent; 
     216#endif 
    216217 
    217218 
     
    371372    UCellError    err; 
    372373    UCellCode     code; 
    373     UCellComponent comp; 
     374    //UCellComponent comp; 
    374375} 
    375376UCell;