• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisioncb5b805eb0608b52dffce8cccc4a046fa33a0738 (tree)
Time2022-05-03 10:27:04
Authorphabrics <phabrics@phab...>
Commiterphabrics

Log Message

Fix for multi-threaded version.

Change Summary

Incremental Difference

--- a/contrib/tme-0.8/host/display.c
+++ b/contrib/tme-0.8/host/display.c
@@ -686,11 +686,7 @@ int tme_display_init(struct tme_element *element,
686686 tme_mutex_init(&display->tme_display_mutex);
687687
688688 /* setup the thread loop function: */
689-#ifdef TME_THREADS_SJLJ
690689 tme_thread_create(&display->tme_display_thread, tme_display_th_update, display);
691-#else
692- tme_threads_init(tme_display_update, display);
693-#endif
694690
695691 /* fill the element: */
696692 element->tme_element_private = display;
--- a/contrib/tme-0.8/machine/sun/sun-fb.c
+++ b/contrib/tme-0.8/machine/sun/sun-fb.c
@@ -985,7 +985,7 @@ _tme_sunfb_tlb_fill(void *_sunfb,
985985 assert (address == address_wider);
986986
987987 /* lock the mutex: */
988- //tme_mutex_lock(&sunfb->tme_sunfb_mutex);
988+ tme_mutex_lock(&sunfb->tme_sunfb_mutex);
989989
990990 /* if this address falls in the bus subregion for memory: */
991991 if ((sunfb->tme_sunfb_bus_subregion_memory.tme_bus_subregion_address_first
@@ -1024,6 +1024,8 @@ _tme_sunfb_tlb_fill(void *_sunfb,
10241024 tlb->tme_bus_tlb_cycles_ok = TME_BUS_CYCLE_READ;
10251025 tlb->tme_bus_tlb_cycle = _tme_sunfb_bus_cycle_memory;
10261026 tlb->tme_bus_tlb_cycle_private = _sunfb;
1027+ /* unlock the mutex: */
1028+ tme_mutex_unlock(&sunfb->tme_sunfb_mutex);
10271029 return (TME_OK);
10281030 }
10291031
@@ -1120,7 +1122,7 @@ _tme_sunfb_tlb_fill(void *_sunfb,
11201122 tlb->tme_bus_tlb_cycle_private = _sunfb;
11211123
11221124 /* unlock the mutex: */
1123- //tme_mutex_unlock(&sunfb->tme_sunfb_mutex);
1125+ tme_mutex_unlock(&sunfb->tme_sunfb_mutex);
11241126
11251127 return (TME_OK);
11261128 }