Replies: 1 comment 2 replies
-
Ah alright, you could look at https://github.com/mercury-hpc/mercury/blob/master/Testing/util/test_threadpool.c to give you an example. For your purpose you would need to wrap the callback that is passed to HG_Register() so that it calls |
Beta Was this translation helpful? Give feedback.
-
Are there simpler examples of using hg_thread_pool_init ? I am facing difficulty in programming with thread pools. Basically my bulk transfer call backs are waiting until threads which invoked bulk transfer has completed. For me the bulk transfer (PULL) is working - I verified by adding a sleep and I can find the data transferred.
I am using socket provider.
Adding a thread pool to one of the programs in examples folder would work for me.
As of now I added the thread pool to my hg_engine_init code, I can see more threads getting created, but it doesn't help in callbacks.
void
hg_engine_init(hg_bool_t listen, const char *local_addr)
{
int ret;
}
Beta Was this translation helpful? Give feedback.
All reactions