| 209 | // ---------------------------------------------------------------------------------------- |
| 210 | |
| 211 | inline bool create_new_thread ( |
| 212 | void (*funct)(void*), |
| 213 | void* param |
| 214 | ) |
| 215 | { |
| 216 | try |
| 217 | { |
| 218 | // now make this thread |
| 219 | return threads_kernel_shared::thread_pool().create_new_thread(funct,param); |
| 220 | } |
| 221 | catch (std::bad_alloc&) |
| 222 | { |
| 223 | return false; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | // ---------------------------------------------------------------------------------------- |
| 228 |