|
@@ -83,7 +83,7 @@ void free_hash_table( struct s_table *hash_table )
|
|
struct s_table* init_hash_table()
|
|
struct s_table* init_hash_table()
|
|
{
|
|
{
|
|
struct s_table* hash_table;
|
|
struct s_table* hash_table;
|
|
- pthread_t *thread;
|
|
|
|
|
|
+ pthread_t thread;
|
|
int i;
|
|
int i;
|
|
|
|
|
|
/*allocs the table*/
|
|
/*allocs the table*/
|
|
@@ -105,10 +105,11 @@ struct s_table* init_hash_table()
|
|
for( i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
|
|
for( i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
|
|
init_timerlist_lock( hash_table, i );
|
|
init_timerlist_lock( hash_table, i );
|
|
|
|
|
|
-#ifdef THREAD
|
|
|
|
|
|
+ return hash_table;
|
|
|
|
+//#ifdef THREAD
|
|
/* starts the timer thread/ process */
|
|
/* starts the timer thread/ process */
|
|
- pthread_create( thread, NULL, timer_routine, hash_table );
|
|
|
|
-#endif
|
|
|
|
|
|
+ pthread_create( &thread, NULL, timer_routine, hash_table );
|
|
|
|
+//#endif
|
|
|
|
|
|
return hash_table;
|
|
return hash_table;
|
|
|
|
|