mitsuba-af602c6fd98a/src/libcore/sched_remote.cpp
/* Executed while the main scheduler lock is held. */
Executed while the main scheduler lock is held.
Executed while the main scheduler lock is held .
void RemoteProcess::handleCancellation() {
	LockGuard lock(m_mutex);
	m_backend->sendCancellation(m_id, (int) m_full.size());
	m_empty.insert(m_empty.end(), m_full.begin(), m_full.end());
	m_full.clear();
}
void RemoteProcess :: handleCancellation ( ) { LockGuard lock ( m_mutex ) ; m_backend -> sendCancellation ( m_id , ( int ) m_full . size ( ) ) ; m_empty . insert ( m_empty . end ( ) , m_full . begin ( ) , m_full . end ( ) ) ; m_full . clear ( ) ; }
Executed while the main scheduler lock is held.
Executed while the main scheduler lock is held .
/* Also acquire the local queue mutex, purge all queued
	   work units and inform the remote side how many were lost */