Commit 0dcc5586 authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

some formatting

parent 7cfd43ac
...@@ -41,14 +41,10 @@ ...@@ -41,14 +41,10 @@
#include "pstream_int.h" #include "pstream_int.h"
#include "dmemory.h" #include "dmemory.h"
#if defined(HAVE_LIBPTHREAD) #if defined(HAVE_LIBPTHREAD)
pthread_mutex_t processMutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_t processMutex = PTHREAD_MUTEX_INITIALIZER;
#endif #endif
int processCreate(void) int processCreate(void)
{ {
#if defined(HAVE_LIBPTHREAD) #if defined(HAVE_LIBPTHREAD)
......
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
#ifndef _PROCESS_H #ifndef _PROCESS_H
#define _PROCESS_H #define _PROCESS_H
#include <sys/types.h> /* off_t */
#include "util.h"
constexpr int MAX_PROCESS = 128; constexpr int MAX_PROCESS = 128;
constexpr int MAX_STREAM = 64; constexpr int MAX_STREAM = 64;
constexpr int MAX_OPERATOR = 128; constexpr int MAX_OPERATOR = 128;
...@@ -33,9 +36,6 @@ typedef struct { ...@@ -33,9 +36,6 @@ typedef struct {
} }
oper_t; oper_t;
#include <sys/types.h> /* off_t */
#include "util.h"
typedef struct { typedef struct {
#if defined(HAVE_LIBPTHREAD) #if defined(HAVE_LIBPTHREAD)
pthread_t threadID; pthread_t threadID;
...@@ -66,7 +66,6 @@ typedef struct { ...@@ -66,7 +66,6 @@ typedef struct {
} }
process_t; process_t;
static process_t Process[MAX_PROCESS]; static process_t Process[MAX_PROCESS];
static int NumProcess = 0; static int NumProcess = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment