Remove PROTECT_VECTORS option since either program is correct without locking or it is not, especially since std::vector is definitely not thread-safe on all major platforms.
This commit is contained in:
@@ -83,11 +83,7 @@ public:
|
||||
|
||||
bool hasJobs ()
|
||||
{
|
||||
// not sure that this lock is necessary, but it's safer to keep it...
|
||||
// TODO: Check for Linux
|
||||
#if PROTECT_VECTORS
|
||||
MYREADERLOCK(l, entryRW);
|
||||
#endif
|
||||
return (!fd.empty());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user