mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 18:24:04 +02:00
Only run, if threads are enabled.
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de> * tests/child-test.c (main): Only run, if threads are enabled.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
ea9d13892e
commit
c36865b1ec
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-02-26 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
|
* tests/child-test.c (main): Only run, if threads are enabled.
|
||||||
|
|
||||||
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
* glib/gatomic.h: empty G_ATOMIC_MEMORY_BARRIER() definition for
|
||||||
!G_THREADS_ENABLED
|
!G_THREADS_ENABLED
|
||||||
|
|
||||||
|
@@ -86,6 +86,9 @@ test_thread (gpointer data)
|
|||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
/* Only run the test, if threads are enabled and a default thread
|
||||||
|
implementation is available */
|
||||||
|
#if defined(G_THREADS_ENABLED) && ! defined(G_THREADS_IMPL_NONE)
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
main_loop = g_main_loop_new (NULL, FALSE);
|
main_loop = g_main_loop_new (NULL, FALSE);
|
||||||
|
|
||||||
@@ -97,5 +100,6 @@ main (int argc, char *argv[])
|
|||||||
|
|
||||||
g_main_loop_run (main_loop);
|
g_main_loop_run (main_loop);
|
||||||
|
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user