Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Linux fixes
  • Loading branch information
stuartmorgan-g authored Feb 15, 2025
commit 551066e4f45920b263bbaa1e6dcaaaf2450c1674
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct _TestPlugin {

GCancellable* cancellable;

int main_thread_id;
std::thread::id main_thread_id;
};

G_DEFINE_TYPE(TestPlugin, test_plugin, G_TYPE_OBJECT)
Expand Down Expand Up @@ -796,14 +796,14 @@ static CoreTestsPigeonTestHostIntegrationCoreApiDefaultIsMainThreadResponse*
default_is_main_thread(gpointer user_data) {
TestPlugin* self = TEST_PLUGIN(user_data);
return core_tests_pigeon_test_host_integration_core_api_default_is_main_thread_response_new(
std::this_thread::get_id() == this->main_thread_id);
std::this_thread::get_id() == self->main_thread_id);
}

static CoreTestsPigeonTestHostIntegrationCoreApiTaskQueueIsBackgroundThreadResponse*
task_queue_is_background_thread(gpointer user_data) {
TestPlugin* self = TEST_PLUGIN(user_data);
return core_tests_pigeon_test_host_integration_core_api_task_queue_is_background_thread_response_new(
std::this_thread::get_id() != this->main_thread_id);
std::this_thread::get_id() != self->main_thread_id);
}

static void noop_cb(GObject* object, GAsyncResult* result, gpointer user_data) {
Expand Down