so I have some main function. 24 time a second it opens a boost thread A
with a function. that function takes in a buffer with data. It starts up a boost timer. It opens another thread B
with a function sending buffer into it. I need thread A to kill thread B if it is executing way 2 long. Of course if thread B has executed in time I do not need to kill it it should kill itself. What boost function can help me to kill created thread (not join - stop/kill or something like that)?
BTW I cannot affect speed of Function I am exequting in thread B thats why I need to be capable of killing it when needed.