summaryrefslogtreecommitdiff
path: root/boost/fiber/fss.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fiber/fss.hpp')
-rw-r--r--boost/fiber/fss.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/fiber/fss.hpp b/boost/fiber/fss.hpp
index f65d7353b3..0a321bb661 100644
--- a/boost/fiber/fss.hpp
+++ b/boost/fiber/fss.hpp
@@ -37,8 +37,8 @@ private:
fn{ fn_ } {
}
- void operator()( void* data) {
- if ( fn) {
+ void operator()( void * data) {
+ if ( BOOST_LIKELY( nullptr != fn) ) {
fn( static_cast< T * >( data) );
}
}
@@ -91,7 +91,7 @@ public:
void reset( T * t) {
T * c = get();
- if ( c != t) {
+ if ( BOOST_LIKELY( c != t) ) {
context::active()->set_fss_data(
this, cleanup_fn_, t, true);
}