mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
Move includes to the top of the file
This commit is contained in:
parent
0ea89987e2
commit
db04f59780
@ -42,14 +42,28 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
#include "gthread.h"
|
#include "gthread.h"
|
||||||
|
|
||||||
#include "gthreadprivate.h"
|
#include "gthreadprivate.h"
|
||||||
#include "gslice.h"
|
#include "gslice.h"
|
||||||
|
#include "gmessages.h"
|
||||||
|
#include "gstrfuncs.h"
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <stdio.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#ifdef HAVE_SYS_TIME_H
|
||||||
|
# include <sys/time.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_UNISTD_H
|
||||||
|
# include <unistd.h>
|
||||||
|
#endif
|
||||||
|
#ifdef HAVE_SCHED_H
|
||||||
|
#include <sched.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
g_thread_abort (gint status,
|
g_thread_abort (gint status,
|
||||||
@ -947,23 +961,6 @@ g_private_set (GPrivate *key,
|
|||||||
|
|
||||||
/* {{{1 GThread */
|
/* {{{1 GThread */
|
||||||
|
|
||||||
#include "glib.h"
|
|
||||||
#include "gthreadprivate.h"
|
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#ifdef HAVE_SYS_TIME_H
|
|
||||||
# include <sys/time.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_UNISTD_H
|
|
||||||
# include <unistd.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_SCHED_H
|
|
||||||
#include <sched.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define posix_check_err(err, name) G_STMT_START{ \
|
#define posix_check_err(err, name) G_STMT_START{ \
|
||||||
int error = (err); \
|
int error = (err); \
|
||||||
if (error) \
|
if (error) \
|
||||||
@ -974,8 +971,6 @@ g_private_set (GPrivate *key,
|
|||||||
|
|
||||||
#define posix_check_cmd(cmd) posix_check_err (cmd, #cmd)
|
#define posix_check_cmd(cmd) posix_check_err (cmd, #cmd)
|
||||||
|
|
||||||
#define G_MUTEX_SIZE (sizeof (pthread_mutex_t))
|
|
||||||
|
|
||||||
void
|
void
|
||||||
g_system_thread_create (GThreadFunc thread_func,
|
g_system_thread_create (GThreadFunc thread_func,
|
||||||
gpointer arg,
|
gpointer arg,
|
||||||
|
Loading…
Reference in New Issue
Block a user