Browse Source

*** empty log message ***

Bogdan-Andrei Iancu 24 years ago
parent
commit
76fcbe6526
1 changed files with 5 additions and 4 deletions
  1. 5 4
      modules/tm/h_table.c

+ 5 - 4
modules/tm/h_table.c

@@ -83,7 +83,7 @@ void free_hash_table( struct s_table *hash_table )
 struct s_table* init_hash_table()
 {
    struct s_table*  hash_table;
-   pthread_t *thread;
+   pthread_t  thread;
    int       i;
 
    /*allocs the table*/
@@ -105,10 +105,11 @@ struct s_table* init_hash_table()
    for(  i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
       init_timerlist_lock( hash_table, i );
 
-#ifdef THREAD
+   return hash_table;
+//#ifdef THREAD
    /* 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;