Comments (5)
I will try to do the lock outside a destructor and propagate the exception.
Please could you tell me when do you see the call to terminate?
from thread.
The problem I have are the exception warranties.
What will be the state when there is a failure when trying to lock?
The resource will be unusable.
What the user should do when receiving an exception?
There are other uses similar to the relocker elsewhere in the library.
from thread.
You need to mark those DTOR as noexcept(false); if they can throw.
Basically even while not being inside a stack unwinding that will make the software terminating.
from thread.
Ok, I see.
from thread.
Done in boost 1.65.
from thread.
Related Issues (20)
- non-virtual-dtor in future_error_category HOT 1
- is_mutex_type<recursive_mutex> is false if BOOST_NO_CXX11_SFINAE_EXPR is defined HOT 1
- Memory leak issue in reset() function from boost::thread_specific_ptr
- Aboated at boost::polygon::polygon_set_data<long long>::get() HOT 1
- boost::thread_v2::upgrade_mutex corrupted when thread is interrupted
- synchronized_value documentation example fails to compile
- does synchronized_value support reader/writer locks?
- Undefined symbol "boost::this_thread::interruption_point()"
- Static library naming error for static libs
- basic_thread_pool.hpp and MinGW
- ls
- Destruction of boost::thread functor is later than with std::thread
- x86 inline assembly should provide an alternative for Intel syntax
- Crash in try_join_for on mac
- CMake link of a non-existent file failed in VS 2022 HOT 5
- boost 1.72 on Ubuntu 22.04 -- ./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "("
- trying to install pcl 1.9.1 from source in Ubuntu 22.04 throws boost error -- from /home/mona/Downloads/pcl-pcl-1.9.1/io/src/ply/ply_parser.cpp:41: /usr/local/include/boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "(" 60 | #if PTHREAD_STACK_MIN > 0
- Please clarify the license of various boost/thread/detail headers
- MFC Application's AfxGetModuleState() Changes after Linking Boost Thread Static Library to My DLL
- sync_queue missing include when setting BOOST_THREAD_DONT_PROVIDE_INTERRUPTIONS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thread.