Home
last modified time | relevance | path

Searched refs:BOOST_UNLIKELY (Results 1 – 25 of 84) sorted by relevance

1234

/third_party/boost/libs/log/src/posix/
Dipc_sync_wrappers.hpp58 if (BOOST_UNLIKELY(err != 0)) in pthread_mutex_attributes()
79 if (BOOST_UNLIKELY(err != 0)) in pthread_condition_variable_attributes()
113 if (BOOST_UNLIKELY(err != 0)) in interprocess_mutex()
116 if (BOOST_UNLIKELY(err != 0)) in interprocess_mutex()
120 if (BOOST_UNLIKELY(err != 0)) in interprocess_mutex()
125 if (BOOST_UNLIKELY(err != 0)) in interprocess_mutex()
138 if (BOOST_UNLIKELY(err == EOWNERDEAD)) in lock()
141 if (BOOST_UNLIKELY(err != 0)) in lock()
154 if (BOOST_UNLIKELY(err != 0)) in recover()
172 if (BOOST_UNLIKELY(err != 0)) in interprocess_condition_variable()
[all …]
/third_party/boost/libs/log/src/
Devent.cpp110 else if (BOOST_UNLIKELY(err != EINTR)) in wait()
125 …if (BOOST_UNLIKELY(::syscall(BOOST_LOG_SYS_FUTEX, &m_state.value(), BOOST_LOG_FUTEX_WAKE, 1, NULL,… in set_signalled()
138 if (BOOST_UNLIKELY(sem_init(&m_semaphore, 0, 0) != 0))
160 if (BOOST_UNLIKELY(err != EINTR))
176 if (BOOST_UNLIKELY(sem_post(&m_semaphore) != 0))
191 if (BOOST_UNLIKELY(!m_event))
210 if (BOOST_UNLIKELY(WaitForSingleObject(m_event, INFINITE) != 0))
224 if (BOOST_UNLIKELY(SetEvent(m_event) == 0))
Dthread_specific.cpp39 if (BOOST_UNLIKELY(m_Key == TLS_OUT_OF_INDEXES)) in thread_specific_base()
95 if (BOOST_UNLIKELY(res != 0))
113 if (BOOST_UNLIKELY(res != 0))
148 if (BOOST_UNLIKELY(res != 0))
163 if (BOOST_UNLIKELY(res != 0))
184 if (BOOST_UNLIKELY(res != 0))
204 if (BOOST_UNLIKELY(res != 0))
227 if (BOOST_UNLIKELY(res != 0))
242 if (BOOST_UNLIKELY(res != 0))
/third_party/boost/boost/fiber/future/
Dfuture.hpp69 if ( BOOST_UNLIKELY( ! valid() ) ) { in get_exception_ptr()
76 if ( BOOST_UNLIKELY( ! valid() ) ) { in wait()
84 if ( BOOST_UNLIKELY( ! valid() ) ) { in wait_for()
92 if ( BOOST_UNLIKELY( ! valid() ) ) { in wait_until()
144 if ( BOOST_UNLIKELY( ! base_type::valid() ) ) { in get()
193 if ( BOOST_UNLIKELY( ! base_type::valid() ) ) { in get()
245 if ( BOOST_UNLIKELY( ! base_type::valid() ) ) { in get()
307 if ( BOOST_UNLIKELY( ! valid() ) ) { in get()
366 if ( BOOST_UNLIKELY( ! valid() ) ) { in get()
432 if ( BOOST_UNLIKELY( ! valid() ) ) { in get()
[all …]
Dpromise.hpp79 if ( BOOST_UNLIKELY( obtained_) ) { in get_future()
82 if ( BOOST_UNLIKELY( ! future_) ) { in get_future()
95 if ( BOOST_UNLIKELY( ! future_) ) { in set_exception()
124 if ( BOOST_UNLIKELY( ! base_type::future_) ) { in set_value()
131 if ( BOOST_UNLIKELY( ! base_type::future_) ) { in set_value()
165 if ( BOOST_UNLIKELY( ! base_type::future_) ) { in set_value()
200 if ( BOOST_UNLIKELY( ! base_type::future_) ) { in set_value()
Dpackaged_task.hpp109 if ( BOOST_UNLIKELY( ! valid() ) ) { in get_future()
118 if ( BOOST_UNLIKELY( ! valid() ) ) { in operator ()()
125 if ( BOOST_UNLIKELY( ! valid() ) ) { in reset()
/third_party/boost/libs/log/src/windows/
Dmapped_shared_memory.cpp79 if (BOOST_UNLIKELY(h == NULL || err != ERROR_SUCCESS)) in create()
111 if (BOOST_UNLIKELY(h == NULL)) in create_or_open()
150 if (BOOST_UNLIKELY(h == NULL)) in open()
185 if (BOOST_UNLIKELY(m_mapped_address == NULL)) in map()
206 if (BOOST_UNLIKELY(query_section == NULL)) in obtain_size()
210 if (BOOST_UNLIKELY(ntdll == NULL)) in obtain_size()
217 if (BOOST_UNLIKELY(query_section == NULL)) in obtain_size()
235 if (BOOST_UNLIKELY(err != 0u)) in obtain_size()
Dipc_sync_wrappers.hpp70 if (BOOST_UNLIKELY(!boost::winapi::SetEvent(m_event.get()))) in set()
84 if (BOOST_UNLIKELY(!boost::winapi::ResetEvent(m_event.get()))) in reset()
94 if (BOOST_UNLIKELY(retval != boost::winapi::wait_object_0)) in wait()
110 else if (BOOST_UNLIKELY(retval != boost::winapi::wait_object_0)) in wait()
154 …if (BOOST_UNLIKELY(!boost::winapi::ReleaseSemaphore(m_sem.get(), static_cast< boost::winapi::LONG_… in post()
169 if (BOOST_UNLIKELY(retval != boost::winapi::wait_object_0)) in wait()
185 else if (BOOST_UNLIKELY(retval != boost::winapi::wait_object_0)) in wait()
303 if (BOOST_UNLIKELY(!try_lock())) in lock()
Dipc_sync_wrappers.cpp75 if (BOOST_UNLIKELY(h == NULL)) in create()
123 if (BOOST_UNLIKELY(h == NULL)) in open()
176 if (BOOST_UNLIKELY(h == NULL)) in open()
217 if (BOOST_UNLIKELY(err != 0u)) in is_semaphore_zero_count_nt_query_semaphore()
234 else if (BOOST_UNLIKELY(retval != boost::winapi::wait_object_0)) in is_semaphore_zero_count_emulated()
313 if (BOOST_UNLIKELY((old_state & waiter_count_mask) == waiter_count_mask)) in mark_waiting_and_try_lock()
353 if (BOOST_UNLIKELY(waiters >= ((std::numeric_limits< int32_t >::max)() - 1))) in wait()
372 if (BOOST_UNLIKELY(retval == boost::winapi::WAIT_FAILED_)) in wait()
/third_party/boost/libs/filesystem/src/
Dunique_path.cpp125 if (BOOST_UNLIKELY(n < 0)) in system_crypt_random()
159 if (BOOST_UNLIKELY(n == -1)) in system_crypt_random()
182 if (BOOST_UNLIKELY(status != 0)) in system_crypt_random()
193 if (BOOST_UNLIKELY(status != 0)) in system_crypt_random()
200 …if (BOOST_UNLIKELY(!boost::winapi::CryptAcquireContextW(&handle, NULL, NULL, boost::winapi::PROV_R… in system_crypt_random()
211 if (BOOST_UNLIKELY(!gen_ok)) in system_crypt_random()
216 if (BOOST_UNLIKELY(!gen_ok)) in system_crypt_random()
Ddirectory.cpp230 if (BOOST_UNLIKELY(!storage)) in readdir_r_simulator()
240 if (BOOST_UNLIKELY(!storage)) in readdir_r_simulator()
263 if (BOOST_UNLIKELY(err != 0)) in dir_itr_increment()
418 if (BOOST_UNLIKELY(::closedir(h) != 0)) in dir_itr_close()
456 if (BOOST_UNLIKELY(!imp)) in directory_iterator_construct()
531 …if (BOOST_UNLIKELY(!!increment_ec)) // happens if filesystem is corrupt, such as on a damaged opt… in directory_iterator_increment()
598 if (BOOST_UNLIKELY(!imp)) in recursive_directory_iterator_construct()
669 if (BOOST_UNLIKELY(!!increment_ec)) in recursive_directory_iterator_pop()
748 if (BOOST_UNLIKELY(!!ec)) in recursive_directory_iterator_push_directory()
764 …if (BOOST_UNLIKELY((imp->m_stack.size() - 1u) >= static_cast< std::size_t >((std::numeric_limits< … in recursive_directory_iterator_push_directory()
[all …]
Doperations.cpp389 if (BOOST_UNLIKELY(!buf.get())) in copy_file_data_read_write()
397 if (BOOST_UNLIKELY(sz_read < 0)) in copy_file_data_read_write()
410 if (BOOST_UNLIKELY(sz < 0)) in copy_file_data_read_write()
444 if (BOOST_UNLIKELY(sz < 0)) in copy_file_data_sendfile()
479 if (BOOST_UNLIKELY(sz < 0)) in copy_file_data_copy_file_range()
502 if (BOOST_UNLIKELY(::uname(&system_info) < 0)) in copy_file_data_initializer()
507 if (BOOST_UNLIKELY(count < 3)) in copy_file_data_initializer()
1148 if (BOOST_UNLIKELY(infile.fd < 0)) in copy_file()
1163 if (BOOST_UNLIKELY(::fstat(infile.fd, &from_stat) != 0)) in copy_file()
1170 if (BOOST_UNLIKELY(!S_ISREG(from_stat.st_mode))) in copy_file()
[all …]
/third_party/boost/libs/nowide/standalone/
Dconfig.hpp76 #define BOOST_UNLIKELY(x) __builtin_expect(x, 0) macro
81 #if !defined(BOOST_UNLIKELY)
82 #define BOOST_UNLIKELY(x) x macro
/third_party/boost/libs/fiber/src/
Dfiber.cpp46 if ( BOOST_UNLIKELY( context::active()->get_id() == get_id() ) ) { in join()
50 if ( BOOST_UNLIKELY( ! joinable() ) ) { in join()
60 if ( BOOST_UNLIKELY( ! joinable() ) ) { in detach()
Dmutex.cpp29 if ( BOOST_UNLIKELY( active_ctx == owner_) ) { in lock()
50 if ( BOOST_UNLIKELY( active_ctx == owner_) ) { in try_lock()
68 if ( BOOST_UNLIKELY( active_ctx != owner_) ) { in unlock()
Dtimed_mutex.cpp55 if ( BOOST_UNLIKELY( active_ctx == owner_) ) { in lock()
77 if ( BOOST_UNLIKELY( active_ctx == owner_) ) { in try_lock()
95 if ( BOOST_UNLIKELY( active_ctx != owner_) ) { in unlock()
/third_party/boost/boost/container/
Dadaptive_pool.hpp155 if(BOOST_UNLIKELY(count > size_type(-1)/(2u*sizeof(T)))) in allocate()
191 if(BOOST_UNLIKELY(!ret && !(command & BOOST_CONTAINER_NOTHROW_ALLOCATION))) in allocation_command()
261 if(BOOST_UNLIKELY(!dlmalloc_multialloc_nodes in allocate_many()
281 if(BOOST_UNLIKELY(!dlmalloc_multialloc_arrays in allocate_many()
328 if(BOOST_UNLIKELY(limit_size > this->max_size() || preferred_size > this->max_size())){ in priv_allocation_command()
465 if(BOOST_UNLIKELY(count > size_type(-1)/(2u*sizeof(T)))) in allocate()
495 if(BOOST_UNLIKELY(!ret && !(command & BOOST_CONTAINER_NOTHROW_ALLOCATION))) in allocation_command()
538 if(BOOST_UNLIKELY(!dlmalloc_multialloc_nodes in allocate_many()
549 if(BOOST_UNLIKELY(!dlmalloc_multialloc_arrays in allocate_many()
588 if(BOOST_UNLIKELY(limit_size > this->max_size() || preferred_size > this->max_size())){ in priv_allocation_command()
Dnode_allocator.hpp147 if(BOOST_UNLIKELY(count > this->max_size())) in allocate()
158 if(BOOST_UNLIKELY(!ret)) in allocate()
194 if(BOOST_UNLIKELY(!ret && !(command & BOOST_CONTAINER_NOTHROW_ALLOCATION))) in allocation_command()
261 …if(BOOST_UNLIKELY(!dlmalloc_multialloc_nodes(n_elements, elem_size*sizeof(T), BOOST_CONTAINER_DL_M… in allocate_many()
277 if(BOOST_UNLIKELY(BOOST_CONTAINER_MEMCHAIN_EMPTY(&ch))){ in allocate_many()
/third_party/boost/boost/fiber/
Dunbuffered_channel.hpp159 if ( BOOST_UNLIKELY( is_closed() ) ) { in push()
192 if ( BOOST_UNLIKELY( is_closed() ) ) { in push()
210 if ( BOOST_UNLIKELY( is_closed() ) ) { in push()
242 if ( BOOST_UNLIKELY( is_closed() ) ) { in push()
277 if ( BOOST_UNLIKELY( is_closed() ) ) { in push_wait_until()
317 if ( BOOST_UNLIKELY( is_closed() ) ) { in push_wait_until()
344 if ( BOOST_UNLIKELY( is_closed() ) ) { in push_wait_until()
383 if ( BOOST_UNLIKELY( is_closed() ) ) { in push_wait_until()
439 if ( BOOST_UNLIKELY( is_closed() ) ) { in pop()
490 if ( BOOST_UNLIKELY( is_closed() ) ) { in value_pop()
[all …]
Dbuffered_channel.hpp67 if ( BOOST_UNLIKELY( 2 > capacity_ || 0 != ( capacity_ & (capacity_ - 1) ) ) ) {
126 if ( BOOST_UNLIKELY( is_closed_() ) ) { in try_push()
159 if ( BOOST_UNLIKELY( is_closed_() ) ) { in try_push()
193 if ( BOOST_UNLIKELY( is_closed_() ) ) { in push()
232 if ( BOOST_UNLIKELY( is_closed_() ) ) { in push()
288 if ( BOOST_UNLIKELY( is_closed_() ) ) { in push_wait_until()
336 if ( BOOST_UNLIKELY( is_closed_() ) ) { in push_wait_until()
414 if ( BOOST_UNLIKELY( is_closed_() ) ) { in pop()
453 if ( BOOST_UNLIKELY( is_closed_() ) ) { in value_pop()
504 if ( BOOST_UNLIKELY( is_closed_() ) ) { in pop_wait_until()
/third_party/boost/boost/log/detail/
Dadaptive_mutex.hpp179 if (BOOST_UNLIKELY(err != 0)) in adaptive_mutex()
193 if (BOOST_UNLIKELY(err != EBUSY)) in try_lock()
201 if (BOOST_UNLIKELY(err != 0)) in lock()
/third_party/boost/libs/fiber/src/numa/windows/
Dtopology.cpp41 if ( BOOST_UNLIKELY( ERROR_INSUFFICIENT_BUFFER != ::GetLastError() ) ) { in procinfo_iterator()
47 if ( BOOST_UNLIKELY( nullptr == buffer_) ) { in procinfo_iterator()
50 … if ( BOOST_UNLIKELY( ! ::GetLogicalProcessorInformationEx( relship, buffer_, & length_) ) ) { in procinfo_iterator()
/third_party/boost/boost/fiber/future/detail/
Dshared_state.hpp65 if ( BOOST_UNLIKELY( ready_) ) { in set_exception_()
164 if ( BOOST_UNLIKELY( ready_) ) { in set_value_()
173 if ( BOOST_UNLIKELY( ready_) ) { in set_value_()
226 if ( BOOST_UNLIKELY( ready_) ) { in set_value_()
269 if ( BOOST_UNLIKELY( ready_) ) { in set_value_()
/third_party/boost/boost/context/
Dcontinuation_ucontext.hpp90 if ( BOOST_UNLIKELY( 0 != ::getcontext( & uctx) ) ) { in activation_record()
301 if ( BOOST_UNLIKELY( 0 != ::getcontext( & record->uctx) ) ) { in create_context1()
336 if ( BOOST_UNLIKELY( 0 != ::getcontext( & record->uctx) ) ) { in create_context2()
389 if ( BOOST_UNLIKELY( nullptr != ptr_) && ! ptr_->main_ctx) { in ~continuation()
424 if ( BOOST_UNLIKELY( detail::activation_record::current()->force_unwind) ) { in resume()
426 } else if ( BOOST_UNLIKELY( nullptr != detail::activation_record::current()->ontop) ) { in resume()
447 if ( BOOST_UNLIKELY( detail::activation_record::current()->force_unwind) ) { in resume_with()
449 } else if ( BOOST_UNLIKELY( nullptr != detail::activation_record::current()->ontop) ) { in resume_with()
Dfiber_ucontext.hpp90 if ( BOOST_UNLIKELY( 0 != ::getcontext( & uctx) ) ) { in fiber_activation_record()
301 if ( BOOST_UNLIKELY( 0 != ::getcontext( & record->uctx) ) ) { in create_fiber1()
336 if ( BOOST_UNLIKELY( 0 != ::getcontext( & record->uctx) ) ) { in create_fiber2()
413 if ( BOOST_UNLIKELY( nullptr != ptr_) && ! ptr_->main_ctx) { in ~fiber()
445 if ( BOOST_UNLIKELY( detail::fiber_activation_record::current()->force_unwind) ) { in resume()
447 … } else if ( BOOST_UNLIKELY( nullptr != detail::fiber_activation_record::current()->ontop) ) { in resume()
464 if ( BOOST_UNLIKELY( detail::fiber_activation_record::current()->force_unwind) ) { in resume_with()
466 … } else if ( BOOST_UNLIKELY( nullptr != detail::fiber_activation_record::current()->ontop) ) { in resume_with()

1234