diff options
| author | Leslie Zhai <zhaixiang@loongson.cn> | 2025-08-05 20:33:45 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-05 14:33:45 +0200 |
| commit | f82c5440b7b01fcc31254a76941e338a47dc5ace (patch) | |
| tree | 3a206b1bdf8d9b1b010eedce38bd11293b5c4c3b /src | |
| parent | c9d5e8bfc38b273e20135ad7808091a65e216887 (diff) | |
| download | box64-f82c5440b7b01fcc31254a76941e338a47dc5ace.tar.gz box64-f82c5440b7b01fcc31254a76941e338a47dc5ace.zip | |
[WRAPPER] Wrapped g_thread_pool some functions (#2900)
Diffstat (limited to 'src')
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 1 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedglib2types.h | 1 | ||||
| -rw-r--r-- | src/wrapped/wrappedglib2.c | 5 | ||||
| -rw-r--r-- | src/wrapped/wrappedglib2_private.h | 10 |
4 files changed, 12 insertions, 5 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index c073df1b..5945eda0 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -3987,6 +3987,7 @@ wrappedglib2: - g_queue_foreach - g_slist_foreach - g_static_private_set + - g_thread_pool_set_sort_function - g_tree_foreach - vFppV: - g_string_append_printf diff --git a/src/wrapped/generated/wrappedglib2types.h b/src/wrapped/generated/wrappedglib2types.h index a11f3783..09aebb07 100644 --- a/src/wrapped/generated/wrappedglib2types.h +++ b/src/wrapped/generated/wrappedglib2types.h @@ -119,6 +119,7 @@ typedef int32_t (*iFpppuppppppp_t)(void*, void*, void*, uint32_t, void*, void*, GO(g_queue_foreach, vFppp_t) \ GO(g_slist_foreach, vFppp_t) \ GO(g_static_private_set, vFppp_t) \ + GO(g_thread_pool_set_sort_function, vFppp_t) \ GO(g_tree_foreach, vFppp_t) \ GO(g_string_append_printf, vFppV_t) \ GO(g_string_printf, vFppV_t) \ diff --git a/src/wrapped/wrappedglib2.c b/src/wrapped/wrappedglib2.c index 875c33da..66c9e99d 100644 --- a/src/wrapped/wrappedglib2.c +++ b/src/wrapped/wrappedglib2.c @@ -1556,6 +1556,11 @@ EXPORT void my_g_async_queue_push_sorted(x64emu_t* emu, void* queue, void* data, my->g_async_queue_push_sorted(queue, data, findGCompareDataFuncFct(func), user_data); } +EXPORT void my_g_thread_pool_set_sort_function(x64emu_t* emu, void* pool, void* func, void* user_data) +{ + my->g_thread_pool_set_sort_function(pool, findGCompareDataFuncFct(func), user_data); +} + #define PRE_INIT \ if(BOX64ENV(nogtk)) \ return -1; diff --git a/src/wrapped/wrappedglib2_private.h b/src/wrapped/wrappedglib2_private.h index ec0f342e..a184e374 100644 --- a/src/wrapped/wrappedglib2_private.h +++ b/src/wrapped/wrappedglib2_private.h @@ -1280,18 +1280,18 @@ GO(g_thread_join, pFp) GOM(g_thread_new, pFEppp) GO(g_thread_pool_free, vFpii) GO(g_thread_pool_get_max_idle_time, uFv) -//GOM(g_thread_pool_get_max_threads, iFp) +GO(g_thread_pool_get_max_threads, iFp) GO(g_thread_pool_get_max_unused_threads, iFv) -//GOM(g_thread_pool_get_num_threads, uFp) +GO(g_thread_pool_get_num_threads, uFp) GO(g_thread_pool_get_num_unused_threads, uFv) GOM(g_thread_pool_new, pFEppiip) GO(g_thread_pool_push, iFppp) GO(g_thread_pool_set_max_idle_time, vFu) -//GOM(g_thread_pool_set_max_threads, iFpip) +GO(g_thread_pool_set_max_threads, iFpip) GO(g_thread_pool_set_max_unused_threads, vFi) -//GOM(g_thread_pool_set_sort_function, vFppp) +GOM(g_thread_pool_set_sort_function, vFEppp) GO(g_thread_pool_stop_unused_threads, vFv) -//GOM(g_thread_pool_unprocessed, uFp) +GO(g_thread_pool_unprocessed, uFp) GO(g_thread_ref, pFp) GO(g_thread_self, pFv) GO(g_thread_set_priority, vFpu) |