Revision 1170 branches/threaded2merge/tests/threads/msimple/msimple.tpl

msimple.tpl (.../threaded2merge/tests/threads/msimple/msimple.tpl) (revision 1170)
7 7

  
8 8
 
9 9
  // write the function to run on the threads
10
  void simple_thread(void * ptr)
10
  void* simple_thread(void* ptr)
11 11
  {
12 12
      // cast the pointer to the propper type
13 13
      new_thread_data * tptr = (new_thread_data *) ptr;
......
148 148
  }
149 149

  
150 150
  // specifiy function to run on the threads by passing apointer to the function
151
  ad_comm::pthread_manager->attach_code(&simple_thread);
151
  ad_comm::pthread_manager->attach_code(simple_thread);
152 152
  // create the threads
153 153
  ad_comm::pthread_manager->create_all(data1);
154 154

  

Also available in: Unified diff