wait until at least one token is available , and then acquire it , and reduce the value . concode_field_sep int value concode_field_sep void release concode_elem_sep void release concode_elem_sep int tryAcquireAll
void function ( ) { while ( value < 1 ) { wait ( ) ; } value -- ; }