Lines Matching refs:h

466 #define NEW_THREAD_INFO_W(gptr,h,h_tail,t,s,n) { \  argument
467 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
468 if (h != NULL) { \
469 h->tid = t; \
470 h->nameA = NULL; \
471 h->nameW = n ? _wcsdup(n) : NULL; \
472 h->state = s; \
473 h->extra1 = 0; /* reserved */ \
474 h->extra2 = NULL; /* reserved */ \
475 h->next = NULL; \
477 (gptr)->thread_list = h; \
479 h_tail->next = h; \
483 #define NEW_THREAD_INFO_A(gptr,h,h_tail,t,s,n) { \ argument
484 h = (__itt_thread_info*)malloc(sizeof(__itt_thread_info)); \
485 if (h != NULL) { \
486 h->tid = t; \
487 h->nameA = n ? __itt_fstrdup(n) : NULL; \
488 h->nameW = NULL; \
489 h->state = s; \
490 h->extra1 = 0; /* reserved */ \
491 h->extra2 = NULL; /* reserved */ \
492 h->next = NULL; \
494 (gptr)->thread_list = h; \
496 h_tail->next = h; \
500 #define NEW_DOMAIN_W(gptr,h,h_tail,name) { \ argument
501 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
502 if (h != NULL) { \
503 h->flags = 1; /* domain is enabled by default */ \
504 h->nameA = NULL; \
505 h->nameW = name ? _wcsdup(name) : NULL; \
506 h->extra1 = 0; /* reserved */ \
507 h->extra2 = NULL; /* reserved */ \
508 h->next = NULL; \
510 (gptr)->domain_list = h; \
512 h_tail->next = h; \
516 #define NEW_DOMAIN_A(gptr,h,h_tail,name) { \ argument
517 h = (__itt_domain*)malloc(sizeof(__itt_domain)); \
518 if (h != NULL) { \
519 h->flags = 1; /* domain is enabled by default */ \
520 h->nameA = name ? __itt_fstrdup(name) : NULL; \
521 h->nameW = NULL; \
522 h->extra1 = 0; /* reserved */ \
523 h->extra2 = NULL; /* reserved */ \
524 h->next = NULL; \
526 (gptr)->domain_list = h; \
528 h_tail->next = h; \
532 #define NEW_STRING_HANDLE_W(gptr,h,h_tail,name) { \ argument
533 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
534 if (h != NULL) { \
535 h->strA = NULL; \
536 h->strW = name ? _wcsdup(name) : NULL; \
537 h->extra1 = 0; /* reserved */ \
538 h->extra2 = NULL; /* reserved */ \
539 h->next = NULL; \
541 (gptr)->string_list = h; \
543 h_tail->next = h; \
547 #define NEW_STRING_HANDLE_A(gptr,h,h_tail,name) { \ argument
548 h = (__itt_string_handle*)malloc(sizeof(__itt_string_handle)); \
549 if (h != NULL) { \
550 h->strA = name ? __itt_fstrdup(name) : NULL; \
551 h->strW = NULL; \
552 h->extra1 = 0; /* reserved */ \
553 h->extra2 = NULL; /* reserved */ \
554 h->next = NULL; \
556 (gptr)->string_list = h; \
558 h_tail->next = h; \
562 #define NEW_COUNTER_W(gptr,h,h_tail,name,domain,type) { \ argument
563 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
564 if (h != NULL) { \
565 h->nameA = NULL; \
566 h->nameW = name ? _wcsdup(name) : NULL; \
567 h->domainA = NULL; \
568 h->domainW = name ? _wcsdup(domain) : NULL; \
569 h->type = type; \
570 h->index = 0; \
571 h->next = NULL; \
573 (gptr)->counter_list = h; \
575 h_tail->next = h; \
579 #define NEW_COUNTER_A(gptr,h,h_tail,name,domain,type) { \ argument
580 h = (__itt_counter_info_t*)malloc(sizeof(__itt_counter_info_t)); \
581 if (h != NULL) { \
582 h->nameA = name ? __itt_fstrdup(name) : NULL; \
583 h->nameW = NULL; \
584 h->domainA = domain ? __itt_fstrdup(domain) : NULL; \
585 h->domainW = NULL; \
586 h->type = type; \
587 h->index = 0; \
588 h->next = NULL; \
590 (gptr)->counter_list = h; \
592 h_tail->next = h; \