progschj / ThreadPool

A simple C++11 Thread Pool implementation
zlib License
7.85k stars 2.24k forks source link

pull request,add volatile #62

Closed uxctx closed 5 years ago

uxctx commented 5 years ago

line:30 bool stop; => volatile bool stop;

wilx commented 5 years ago

@lucpp commented on 24 Oct 2018, 11:25 CEST:

line:30 bool stop; => volatile bool stop;

That is not necessary. The stop variable is only accessed with held queue_mutex.

fogti commented 5 years ago

@wilx I agree.