Try not to use atomics in performance code

This commit is contained in:
vsonnier
2017-09-22 22:23:34 +02:00
parent aec0100f78
commit 927d727a16
6 changed files with 135 additions and 82 deletions
+8
View File
@@ -48,7 +48,15 @@ class ReBuffer {
typedef typename std::shared_ptr<BufferType> ReBufferPtr;
public:
//Virtual destructor to assure correct freeing of all descendants.
virtual ~ReBuffer() {
//nothing
}
//constructor
ReBuffer(std::string bufferId) : bufferId(bufferId) {
//nothing
}
/// Return a new ReBuffer_ptr usable by the application.