Open Source Telephony
 help / color / mirror / Atom feed
* [PATCH 1/2] src/main.c: removed call to g_thread_init
@ 2018-09-20  4:39 Giacinto Cifelli
  2018-09-20  4:39 ` [PATCH 2/2] tools/auto-enable.c and tools/huawei-audio.c: removed calls " Giacinto Cifelli
  2018-09-20 15:41 ` [PATCH 1/2] src/main.c: removed call " Denis Kenzior
  0 siblings, 2 replies; 3+ messages in thread
From: Giacinto Cifelli @ 2018-09-20  4:39 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 617 bytes --]

according to g_thread documentation, this call is no longer needed,
and starting from g_thread version 2.32 it must not be used
---
 src/main.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/main.c b/src/main.c
index 2d359dd..d8a06ba 100644
--- a/src/main.c
+++ b/src/main.c
@@ -211,11 +211,6 @@ int main(int argc, char **argv)
 	struct ell_event_source *source;
 #endif
 
-#ifdef NEED_THREADS
-	if (g_thread_supported() == FALSE)
-		g_thread_init(NULL);
-#endif
-
 	context = g_option_context_new(NULL);
 	g_option_context_add_main_entries(context, options, NULL);
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-20 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-20  4:39 [PATCH 1/2] src/main.c: removed call to g_thread_init Giacinto Cifelli
2018-09-20  4:39 ` [PATCH 2/2] tools/auto-enable.c and tools/huawei-audio.c: removed calls " Giacinto Cifelli
2018-09-20 15:41 ` [PATCH 1/2] src/main.c: removed call " Denis Kenzior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox