@@ -1759,30 +1759,6 @@ void __kmp_clear_system_time(void) {
1759
1759
TIMEVAL_TO_TIMESPEC (&tval, &__kmp_sys_timer_data.start );
1760
1760
}
1761
1761
1762
- #ifdef BUILD_TV
1763
-
1764
- void __kmp_tv_threadprivate_store (kmp_info_t *th, void *global_addr,
1765
- void *thread_addr) {
1766
- struct tv_data *p;
1767
-
1768
- p = (struct tv_data *)__kmp_allocate (sizeof (*p));
1769
-
1770
- p->u .tp .global_addr = global_addr;
1771
- p->u .tp .thread_addr = thread_addr;
1772
-
1773
- p->type = (void *)1 ;
1774
-
1775
- p->next = th->th .th_local .tv_data ;
1776
- th->th .th_local .tv_data = p;
1777
-
1778
- if (p->next == 0 ) {
1779
- int rc = pthread_setspecific (__kmp_tv_key, p);
1780
- KMP_CHECK_SYSFAIL (" pthread_setspecific" , rc);
1781
- }
1782
- }
1783
-
1784
- #endif /* BUILD_TV */
1785
-
1786
1762
static int __kmp_get_xproc (void ) {
1787
1763
1788
1764
int r = 0 ;
@@ -1872,13 +1848,6 @@ void __kmp_runtime_initialize(void) {
1872
1848
/* Set up minimum number of threads to switch to TLS gtid */
1873
1849
__kmp_tls_gtid_min = KMP_TLS_GTID_MIN;
1874
1850
1875
- #ifdef BUILD_TV
1876
- {
1877
- int rc = pthread_key_create (&__kmp_tv_key, 0 );
1878
- KMP_CHECK_SYSFAIL (" pthread_key_create" , rc);
1879
- }
1880
- #endif
1881
-
1882
1851
status = pthread_key_create (&__kmp_gtid_threadprivate_key,
1883
1852
__kmp_internal_end_dest);
1884
1853
KMP_CHECK_SYSFAIL (" pthread_key_create" , status);
@@ -1910,10 +1879,6 @@ void __kmp_runtime_destroy(void) {
1910
1879
1911
1880
status = pthread_key_delete (__kmp_gtid_threadprivate_key);
1912
1881
KMP_CHECK_SYSFAIL (" pthread_key_delete" , status);
1913
- #ifdef BUILD_TV
1914
- status = pthread_key_delete (__kmp_tv_key);
1915
- KMP_CHECK_SYSFAIL (" pthread_key_delete" , status);
1916
- #endif
1917
1882
1918
1883
status = pthread_mutex_destroy (&__kmp_wait_mx.m_mutex );
1919
1884
if (status != 0 && status != EBUSY) {
0 commit comments