| 26 | // ----------------------------------------------------------------------------------- |
| 27 | |
| 28 | void* thread_starter ( |
| 29 | void* param |
| 30 | ) |
| 31 | { |
| 32 | info* alloc_p = static_cast<info*>(param); |
| 33 | info p = *alloc_p; |
| 34 | delete alloc_p; |
| 35 | |
| 36 | // detach self |
| 37 | pthread_detach(pthread_self()); |
| 38 | |
| 39 | p.funct(p.param); |
| 40 | return 0; |
| 41 | } |
| 42 | |
| 43 | // ----------------------------------------------------------------------------------- |
| 44 |