0

Code at http://www.boost.org/doc/libs/1_65_1/boost/interprocess/mem_algo/rbtree_best_fit.hpp (github: #L664):

enter image description here

if process crash between lock and allocate, the mutex did not release next time allocate will be stuck. How can I deal with it?? use thread Non Thread-Safe allocator???

sehe
  • 374,641
  • 47
  • 450
  • 633
Eric Xu
  • 69
  • 4
  • image contains code – Eric Xu Oct 24 '17 at 06:57
  • First of all, never include code in screen shots. There's no reason to be so lazy and make it hard for people to read your question. Secondly, this is a duplicate. I'll close it as such in a minute – sehe Oct 24 '17 at 07:16
  • Also related: https://stackoverflow.com/questions/1179685/how-do-i-take-ownership-of-an-abandoned-boostinterprocessinterprocess-mutex/1179766#1179766 – sehe Oct 24 '17 at 08:17

0 Answers0