mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-30 23:29:08 +00:00
Ensured the output lock isn't held while talking to the delegate.
This commit is contained in:
parent
9521718120
commit
d2a7d39749
@ -242,7 +242,9 @@ void CRT::advance_cycles(unsigned int number_of_cycles, bool hsync_requested, bo
|
|||||||
frames_since_last_delegate_call_++;
|
frames_since_last_delegate_call_++;
|
||||||
if(frames_since_last_delegate_call_ == 20)
|
if(frames_since_last_delegate_call_ == 20)
|
||||||
{
|
{
|
||||||
|
output_lock.unlock();
|
||||||
delegate_->crt_did_end_batch_of_frames(this, frames_since_last_delegate_call_, vertical_flywheel_->get_and_reset_number_of_surprises());
|
delegate_->crt_did_end_batch_of_frames(this, frames_since_last_delegate_call_, vertical_flywheel_->get_and_reset_number_of_surprises());
|
||||||
|
output_lock.lock();
|
||||||
frames_since_last_delegate_call_ = 0;
|
frames_since_last_delegate_call_ = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user