Fixed itt_collector build (#9596)
This commit is contained in:
parent
2990049c93
commit
12d92dfa2d
@ -1108,7 +1108,7 @@ __itt_timestamp get_timestamp() {
|
|||||||
void Pause() {
|
void Pause() {
|
||||||
static __itt_global* pGlobal = GetITTGlobal();
|
static __itt_global* pGlobal = GetITTGlobal();
|
||||||
while (pGlobal) {
|
while (pGlobal) {
|
||||||
pGlobal->state = __itt_collection_paused;
|
pGlobal->state = __itt_collection_init_fail;
|
||||||
___itt_domain* pDomain = pGlobal->domain_list;
|
___itt_domain* pDomain = pGlobal->domain_list;
|
||||||
while (pDomain) {
|
while (pDomain) {
|
||||||
pDomain->flags =
|
pDomain->flags =
|
||||||
@ -1138,7 +1138,7 @@ void Resume() {
|
|||||||
1; // this flag is analyzed by static part of ITT to decide where to call dynamic part or not
|
1; // this flag is analyzed by static part of ITT to decide where to call dynamic part or not
|
||||||
pDomain = pDomain->next;
|
pDomain = pDomain->next;
|
||||||
}
|
}
|
||||||
pGlobal->state = __itt_collection_normal;
|
pGlobal->state = __itt_collection_uninitialized;
|
||||||
pGlobal = pGlobal->next;
|
pGlobal = pGlobal->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user