We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b1348 commit 5108356Copy full SHA for 5108356
test/providers/level_zero_helpers.cpp
@@ -306,17 +306,18 @@ static int init_level_zero_lib(void) {
306
return 0;
307
}
308
309
-UTIL_ONCE_FLAG level_zero_init_flag;
310
-int InitResult;
311
-void init_level_zero_once() {
+static UTIL_ONCE_FLAG level_zero_init_flag = UTIL_ONCE_FLAG_INIT;
+static int InitResult;
+
312
+static void init_level_zero_once(void) {
313
InitResult = InitLevelZeroOps();
314
if (InitResult != 0) {
315
return;
316
317
InitResult = init_level_zero_lib();
318
319
-int init_level_zero() {
320
+static int init_level_zero(void) {
321
utils_init_once(&level_zero_init_flag, init_level_zero_once);
322
323
return InitResult;
0 commit comments