Revision | cb5b805eb0608b52dffce8cccc4a046fa33a0738 (tree) |
---|---|
Time | 2022-05-03 10:27:04 |
Author | phabrics <phabrics@phab...> |
Commiter | phabrics |
Fix for multi-threaded version.
@@ -686,11 +686,7 @@ int tme_display_init(struct tme_element *element, | ||
686 | 686 | tme_mutex_init(&display->tme_display_mutex); |
687 | 687 | |
688 | 688 | /* setup the thread loop function: */ |
689 | -#ifdef TME_THREADS_SJLJ | |
690 | 689 | tme_thread_create(&display->tme_display_thread, tme_display_th_update, display); |
691 | -#else | |
692 | - tme_threads_init(tme_display_update, display); | |
693 | -#endif | |
694 | 690 | |
695 | 691 | /* fill the element: */ |
696 | 692 | element->tme_element_private = display; |
@@ -985,7 +985,7 @@ _tme_sunfb_tlb_fill(void *_sunfb, | ||
985 | 985 | assert (address == address_wider); |
986 | 986 | |
987 | 987 | /* lock the mutex: */ |
988 | - //tme_mutex_lock(&sunfb->tme_sunfb_mutex); | |
988 | + tme_mutex_lock(&sunfb->tme_sunfb_mutex); | |
989 | 989 | |
990 | 990 | /* if this address falls in the bus subregion for memory: */ |
991 | 991 | if ((sunfb->tme_sunfb_bus_subregion_memory.tme_bus_subregion_address_first |
@@ -1024,6 +1024,8 @@ _tme_sunfb_tlb_fill(void *_sunfb, | ||
1024 | 1024 | tlb->tme_bus_tlb_cycles_ok = TME_BUS_CYCLE_READ; |
1025 | 1025 | tlb->tme_bus_tlb_cycle = _tme_sunfb_bus_cycle_memory; |
1026 | 1026 | tlb->tme_bus_tlb_cycle_private = _sunfb; |
1027 | + /* unlock the mutex: */ | |
1028 | + tme_mutex_unlock(&sunfb->tme_sunfb_mutex); | |
1027 | 1029 | return (TME_OK); |
1028 | 1030 | } |
1029 | 1031 |
@@ -1120,7 +1122,7 @@ _tme_sunfb_tlb_fill(void *_sunfb, | ||
1120 | 1122 | tlb->tme_bus_tlb_cycle_private = _sunfb; |
1121 | 1123 | |
1122 | 1124 | /* unlock the mutex: */ |
1123 | - //tme_mutex_unlock(&sunfb->tme_sunfb_mutex); | |
1125 | + tme_mutex_unlock(&sunfb->tme_sunfb_mutex); | |
1124 | 1126 | |
1125 | 1127 | return (TME_OK); |
1126 | 1128 | } |