File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 22
22
#include "utils_concurrency.h"
23
23
#include "utils_log.h"
24
24
25
- #ifdef _WIN32
26
- UTIL_ONCE_FLAG Log_initialized = UTIL_ONCE_FLAG_INIT ;
27
- #else
28
- void __attribute__((constructor )) coarse_init (void ) { utils_log_init (); }
29
- void __attribute__((destructor )) coarse_destroy (void ) {}
30
- #endif /* _WIN32 */
31
-
32
25
typedef struct coarse_t {
33
26
// handle of the memory provider
34
27
void * provider ;
Original file line number Diff line number Diff line change 1
1
/*
2
2
*
3
- * Copyright (C) 2024 Intel Corporation
3
+ * Copyright (C) 2024-2025 Intel Corporation
4
4
*
5
5
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
6
6
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9
9
10
10
#include "proxy_lib.h"
11
11
12
- // The priority 102 is used, because the constructor should be called as the second one
13
- // (just after the first constructor of the base allocator with priority 101)
14
- // and the destructor as the last but one (just before the last destructor
15
- // of the base allocator with priority 101), because this library
16
- // provides the memory allocation API.
17
- void __attribute__((constructor (102 ))) proxy_lib_create (void ) {
12
+ void __attribute__((constructor )) proxy_lib_create (void ) {
18
13
proxy_lib_create_common ();
19
14
}
20
15
21
- void __attribute__((destructor ( 102 ) )) proxy_lib_destroy (void ) {
16
+ void __attribute__((destructor )) proxy_lib_destroy (void ) {
22
17
proxy_lib_destroy_common ();
23
18
}
You can’t perform that action at this time.
0 commit comments