pothosware / PothosCore

The Pothos data-flow framework
https://github.com/pothosware/PothosCore/wiki
Boost Software License 1.0
302 stars 48 forks source link

removing uncessary locking #134

Closed guruofquality closed 6 years ago

guruofquality commented 6 years ago

The goal is to speed up instances where we did one time initialization and then just read operations at main runtime. Using locks to protect these seldom written resources was wasteful and costly. So they are getting a read-write spin lock which is basically transparent as long as we are reading only.

Similarly, we removed poco singleton holder in a few places because it was causing unnecessary locking and should not be required because of the c++11 standard.