Commit b5d0dce9 authored by Emmanuel Thomé's avatar Emmanuel Thomé

add important storage class modifiers...

parent 7555e673
......@@ -12,7 +12,7 @@
/* If HAVE_SYNC_FETCH is not defined, we will use mutex for multithreaded
* version of the code. May be too slow. */
#ifndef HAVE_SYNC_FETCH
pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
#endif
void
......
......@@ -12,7 +12,7 @@
/* If HAVE_SYNC_FETCH is not defined, we will use mutex for multithreaded
* version of the code. May be too slow. */
#ifndef HAVE_SYNC_FETCH
pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t lock = PTHREAD_MUTEX_INITIALIZER;
#endif
/* Code for singletons removal --- monothread version */
......
......@@ -48,7 +48,7 @@ cado_poly best_poly, curr_poly;
double best_E = 0.0; /* Murphy's E (the larger the better) */
/* read-write global variables */
pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER; /* used as mutual exclusion
static pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER; /* used as mutual exclusion
lock for those variables */
int tot_found = 0; /* total number of polynomials */
int opt_found = 0; /* number of size-optimized polynomials */
......
......@@ -50,7 +50,7 @@ cado_poly best_poly, curr_poly;
double best_E = 0.0; /* Murphy's E (the larger the better) */
/* read-write global variables */
pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER; /* used as mutual exclusion
static pthread_mutex_t lock=PTHREAD_MUTEX_INITIALIZER; /* used as mutual exclusion
lock for those variables */
int tot_found = 0; /* total number of polynomials */
double potential_collisions = 0.0;
......
Markdown is supported
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