Searched refs:trylock (Results 1 - 9 of 9) sorted by relevance

/gem5/src/systemc/ext/channel/
H A Dsc_mutex_if.hh42 virtual int trylock() = 0;
H A Dsc_mutex.hh48 virtual int trylock();
/gem5/src/systemc/channel/
H A Dsc_mutex.cc48 while (trylock() == -1)
54 sc_mutex::trylock() function in class:sc_core::sc_mutex
/gem5/src/systemc/tests/systemc/communication/sc_mutex/test01/
H A Dtest01.cpp65 if( mutex.trylock() == 0 ) {
66 write( "proc_a - trylock successful" );
68 write( "proc_a - trylock failed" );
92 if( mutex.trylock() == 0 ) {
93 write( "proc_b - trylock successful" );
95 write( "proc_b - trylock failed" );
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_mutex.h64 virtual int trylock();
H A Dsc_mutex.cpp79 sc_mutex::trylock() function in class:sc_core::sc_mutex
122 // David C. Black, ESLX, Inc: lock & trylock now allow owner to apply
H A Dsc_mutex_if.h47 // the classical operations: lock(), trylock(), and unlock()
53 virtual int trylock() = 0;
H A Dsc_host_mutex.h112 virtual int trylock() function in class:sc_core::sc_host_mutex
/gem5/src/systemc/tests/systemc/communication/sc_mutex/test02/
H A Dtest02.cpp65 if( mutex->trylock() == 0 ) {
66 write( "proc_a - trylock successful" );
68 write( "proc_a - trylock failed" );
107 if( mutex->trylock() == 0 ) {
108 write( "proc_b - trylock successful" );
110 write( "proc_b - trylock failed" );

Completed in 9 milliseconds