Changeset 509 for trunk/thune/urlan.h

Show
Ignore:
Timestamp:
02/09/08 02:35:22 (10 months ago)
Author:
krobillard
Message:

Added hold/release macros. ur_readDir() now holds its result block.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/urlan.h

    r508 r509  
    598598 
    599599UIndex ur_hold( UThread*, int type, UIndex which ); 
    600 void   ur_release( UThread*, UIndex ); 
     600void   ur_releaseT( UThread*, UIndex ); 
    601601 
    602602UBlock*    ur_blockPtrT( UThread*, UIndex ); 
     
    648648#define ur_block(c)         ur_blockPtr( (c)->series.n ) 
    649649#define ur_bin(c)           ur_binPtr( (c)->series.n ) 
     650 
     651#define ur_holdBlock(n)     ur_hold( ut, UT_BLOCK, n ) 
     652#define ur_holdBin(n)       ur_hold( ut, UT_BINARY, n ) 
     653#define ur_release(n)       ur_releaseT( ut, n ) 
    650654 
    651655#define ur_type(c)          (c)->id.type