mirror of
https://github.com/Relintai/thread_pool.git
synced 2024-11-12 10:25:29 +01:00
Don't use the _queue.write if it's not needed.
This commit is contained in:
parent
c0a2d3bbe5
commit
59ba27f161
@ -165,7 +165,7 @@ bool ThreadPool::has_job(const Ref<ThreadPoolJob> &job) {
|
||||
}
|
||||
|
||||
for (int i = _current_queue_head; i < _current_queue_tail; ++i) {
|
||||
if (_queue.write[i] == job) {
|
||||
if (_queue[i] == job) {
|
||||
|
||||
_THREAD_SAFE_UNLOCK_
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user