You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
788 B

  1. --- a/boost/regex/v5/mem_block_cache.hpp
  2. +++ b/boost/regex/v5/mem_block_cache.hpp
  3. @@ -85,10 +85,10 @@ struct mem_block_node
  4. struct mem_block_cache
  5. {
  6. // this member has to be statically initialsed:
  7. - mem_block_node* next;
  8. - unsigned cached_blocks;
  9. + mem_block_node* next { nullptr };
  10. + unsigned cached_blocks { 0 };
  11. #ifdef BOOST_HAS_THREADS
  12. - boost::static_mutex mut;
  13. + std::mutex mut;
  14. #endif
  15. ~mem_block_cache()
  16. @@ -133,11 +133,7 @@ struct mem_block_cache
  17. }
  18. static mem_block_cache& instance()
  19. {
  20. -#ifdef BOOST_HAS_THREADS
  21. - static mem_block_cache block_cache = { 0, 0, BOOST_STATIC_MUTEX_INIT, };
  22. -#else
  23. - static mem_block_cache block_cache = { 0, 0, };
  24. -#endif
  25. + static mem_block_cache block_cache;
  26. return block_cache;
  27. }
  28. };