Searched refs:lock (Results 1 - 25 of 35) sorted by relevance

12

/gem5/tests/test-progs/pthread/src/
H A Dtest_pthread_mutex.cpp55 pthread_mutex_t* lock; member in struct:__anon79
64 pthread_mutex_t* lock = my_args->lock; local
67 // acquire the lock
68 pthread_mutex_lock(lock);
73 // release the lock
74 pthread_mutex_unlock(lock);
94 // create a shared lock
95 pthread_mutex_t lock; local
96 pthread_mutex_init(&lock, NUL
[all...]
/gem5/src/systemc/ext/channel/
H A Dsc_mutex_if.hh41 virtual int lock() = 0;
H A Dsc_mutex.hh47 virtual int lock();
/gem5/src/base/
H A Dbarrier.hh67 std::unique_lock<std::mutex> lock(bMutex);
77 bCond.wait(lock);
/gem5/ext/systemc/src/sysc/communication/
H A Dsc_mutex_if.h47 // the classical operations: lock(), trylock(), and unlock()
50 virtual int lock() = 0;
75 // The sc_scoped_lock class to lock (and automatically release) a mutex.
90 m_ref.lock();
H A Dsc_mutex.h61 virtual int lock();
H A Dsc_mutex.cpp65 sc_mutex::lock() function in class:sc_core::sc_mutex
122 // David C. Black, ESLX, Inc: lock & trylock now allow owner to apply
123 // lock more than once without incident. Previous behavior locked up the
H A Dsc_host_mutex.h108 virtual int lock() function in class:sc_core::sc_host_mutex
H A Dsc_prim_channel.cpp161 sc_scoped_lock lock( m_mutex );
170 sc_scoped_lock lock( m_mutex );
/gem5/src/systemc/tests/systemc/communication/sc_mutex/test01/
H A Dtest01.cpp55 write( "proc_a - lock requested" );
56 mutex.lock();
57 write( "proc_a - lock obtained" );
82 write( "proc_b - lock requested" );
83 mutex.lock();
84 write( "proc_b - lock obtained" );
/gem5/src/systemc/channel/
H A Dsc_mutex.cc46 sc_mutex::lock() function in class:sc_core::sc_mutex
/gem5/src/systemc/tests/systemc/communication/sc_mutex/test02/
H A Dtest02.cpp55 write( "proc_a - lock requested" );
56 mutex->lock();
57 write( "proc_a - lock obtained" );
97 write( "proc_b - lock requested" );
98 mutex->lock();
99 write( "proc_b - lock obtained" );
/gem5/src/sim/
H A Dglobal_event.cc65 // the lock globalQMutex. This ensures that only one thread can schedule
75 globalQMutex.lock();
100 globalQMutex.lock();
H A Dsimulate.cc163 asyncEventMutex.lock();
194 // Take the event queue lock in case any of the service
196 std::lock_guard<EventQueue> lock(*eventq);
H A Ddrain.cc161 std::lock_guard<std::mutex> lock(globalLock);
170 std::lock_guard<std::mutex> lock(globalLock);
190 std::lock_guard<std::mutex> lock(globalLock);
H A Deventq.cc206 std::lock_guard<EventQueue> lock(*this);
424 async_queue_mutex.lock();
433 async_queue_mutex.lock();
H A Deventq.hh463 * from a thread holding the event queue lock
464 * (EventQueue::service_mutex). The lock is always held when an event
466 * own event queue unless it voluntarily releases the lock.
470 * queue's lock. However, the lock should <i>never</i> be taken
473 * temporarily release its own queue and lock the new queue. This
475 * event queue lock. This functionality is provided by the
508 * This lock is always taken when servicing events. It is assumed
510 * though) have taken this lock. This is normally done by
514 * This lock i
700 void lock() { service_mutex.lock(); } function in class:EventQueue
[all...]
/gem5/ext/systemc/src/tlm_core/tlm_1/tlm_req_rsp/tlm_adapters/
H A Dtlm_adapters.h52 mutex.lock();
/gem5/src/systemc/ext/tlm_core/1/req_rsp/adapters/
H A Dadapters.hh52 mutex.lock();
/gem5/src/dev/net/
H A Ddist_iface.cc89 std::unique_lock<std::mutex> sync_lock(lock);
128 std::unique_lock<std::mutex> sync_lock(lock);
160 std::unique_lock<std::mutex> sync_lock(lock);
207 std::unique_lock<std::mutex> sync_lock(lock);
248 std::unique_lock<std::mutex> sync_lock(lock);
272 std::lock_guard<std::mutex> sync_lock(lock);
283 std::lock_guard<std::mutex> sync_lock(lock);
386 * We hold the eventq lock at this point but the receiver thread may
387 * need the lock to schedule new recv events while waiting for the
503 curEventQueue()->lock();
[all...]
/gem5/ext/googletest/googletest/include/gtest/internal/
H A Dgtest-linked_ptr.h110 MutexLock lock(&g_linked_ptr_mutex);
127 MutexLock lock(&g_linked_ptr_mutex);
/gem5/system/alpha/console/
H A Ddbmentry.S172 ldq_l a1,0(a0) # interlock complete lock state
174 blbs a1,2f # branch if lock is busy
175 stq_c v0,0(a0) # attempt to acquire lock
/gem5/tests/gem5/
H A Dfixture.py97 obj.lock = threading.Lock()
103 with self.lock:
111 with self.lock:
/gem5/src/systemc/tests/systemc/1666-2011-compliance/odds_and_ends/
H A Dodds_and_ends.cpp136 mut.lock();
/gem5/util/systemc/gem5_within_systemc/
H A Dsc_module.cc146 std::lock_guard<EventQueue> lock(*eventq);

Completed in 29 milliseconds

12