Properly initialize atomic variable
This commit is contained in:
parent
796ac29cf2
commit
865a33f7b9
|
@ -45,7 +45,7 @@ public:
|
|||
size_mask = size - 1;
|
||||
buf = new T[size];
|
||||
|
||||
read_idx = 0;
|
||||
g_atomic_int_set (&read_idx, 0);
|
||||
reset ();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user