13
0

Properly initialize atomic variable

This commit is contained in:
Robin Gareus 2019-02-08 19:10:35 +01:00
parent 796ac29cf2
commit 865a33f7b9
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -45,7 +45,7 @@ public:
size_mask = size - 1;
buf = new T[size];
read_idx = 0;
g_atomic_int_set (&read_idx, 0);
reset ();
}