Home
last modified time | relevance | path

Searched refs:write (Results 1 – 22 of 22) sorted by relevance

/oneTBB/include/oneapi/tbb/detail/
H A D_scoped_lock.h85 rw_scoped_lock(Mutex& m, bool write = true) {
86 acquire(m, write);
101 void acquire(Mutex& m, bool write = true) {
103 m_is_writer = write;
105 if (write) {
113 bool try_acquire(Mutex& m, bool write = true) {
114 bool succeed = write ? m.try_lock() : m.try_lock_shared();
117 m_is_writer = write;
H A D_rtm_rw_mutex.h72 …scoped_lock(rtm_rw_mutex& m, bool write = true) : m_mutex(nullptr), m_transaction_state(rtm_type::… in alignas()
73 acquire(m, write); in alignas()
88 inline void acquire(rtm_rw_mutex& m, bool write = true); in alignas()
91 inline bool try_acquire(rtm_rw_mutex& m, bool write = true); in alignas()
145 void rtm_rw_mutex::scoped_lock::acquire(rtm_rw_mutex& m, bool write) { in acquire() argument
147 if (write) { in acquire()
155 bool rtm_rw_mutex::scoped_lock::try_acquire(rtm_rw_mutex& m, bool write) { in try_acquire() argument
157 if (write) { in try_acquire()
/oneTBB/include/oneapi/tbb/
H A Dqueuing_rw_mutex.h81 scoped_lock( queuing_rw_mutex& m, bool write=true ) {
83 acquire(m,write);
96 void acquire( queuing_rw_mutex& m, bool write=true );
99 bool try_acquire( queuing_rw_mutex& m, bool write=true );
172 inline void queuing_rw_mutex::scoped_lock::acquire(queuing_rw_mutex& m,bool write) { in acquire() argument
173 r1::acquire(m, *this, write); in acquire()
176 inline bool queuing_rw_mutex::scoped_lock::try_acquire(queuing_rw_mutex& m, bool write) { in try_acquire() argument
177 return r1::try_acquire(m, *this, write); in try_acquire()
H A Dconcurrent_hash_map.h1274 …bool lookup( const K &key, const T *t, const_accessor *result, bool write, AllocateNodeType alloca… in __TBB_requires()
1333 if( !result->try_acquire( n->mutex, write ) ) { in __TBB_requires()
1335 if( result->try_acquire( n->mutex, write ) ) break; in __TBB_requires()
/oneTBB/test/tbb/
H A Dtest_mutex.h88 bool write = (mode % 8) == 7; in flog_once() local
94 typename mutex_type::scoped_lock lock(mutex, write); in flog_once()
95 if (write) { in flog_once()
121 lock.acquire(mutex, write); in flog_once()
122 if (write) { in flog_once()
H A Dtest_scheduler_mix.cpp121 ScopedLock(PtrRWMutex& m, bool write = true) : mMutex(nullptr) { in ScopedLock() argument
122 CHECK_FAST(write == true); in ScopedLock()
144 bool tryAcquire(PtrRWMutex& m, bool write = true) { in tryAcquire() argument
145 bool succeed = write ? m.tryLock() : m.tryLockShared(); in tryAcquire()
148 mIsWriter = write; in tryAcquire()
/oneTBB/test/conformance/
H A Dconformance_mutex.h146 …Lock_Impl(Counter& counter, typename M::scoped_lock& lock, const std::size_t i, const bool write) { in TestReaderWriterLock_Impl() argument
148 if (write) { in TestReaderWriterLock_Impl()
189 const bool write = (i % 8) == 7; in TestReaderWriterLock()
192 typename M::scoped_lock lock(counter.mutex, write); in TestReaderWriterLock()
193 TestReaderWriterLock_Impl<M, ArrayCounter<M, 8>>(counter, lock, i, write); in TestReaderWriterLock()
198 lock.acquire(counter.mutex, write); in TestReaderWriterLock()
199 TestReaderWriterLock_Impl<M, ArrayCounter<M, 8>>(counter, lock, i, write); in TestReaderWriterLock()
/oneTBB/doc/main/reference/
H A Dcustom_mutex_chmap.rst87 scoped_lock(SharedMutexWrapper& mutex, bool write = true)
88 : my_mutex_ptr(&mutex), my_writer_flag(write)
101 void acquire(SharedMutexWrapper& mutex, bool write = true) {
105 my_writer_flag = write;
/oneTBB/doc/main/tbb_userguide/design_patterns/
H A DFenced_Data_Transfer.rst32 write a message and mark it as ready to ready as shown in the
112 A write to a ``std::atomic`` value has *release* semantics, which
114 write. A read from ``std::atomic`` value has *acquire* semantics,
147 keyword forces a write to happen immediately, it generally has no
148 effect on the visible ordering of that write with respect to other
/oneTBB/src/tbb/
H A Dqueuing_rw_mutex.cpp158 static void acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) in acquire()
168 …s.my_state.store(d1::queuing_rw_mutex::scoped_lock::state_t(write ? STATE_WRITER : STATE_READER), … in acquire()
177 if( write ) { // Acquiring for write in acquire()
254 … static bool try_acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) in try_acquire()
266 …s.my_state.store(d1::queuing_rw_mutex::scoped_lock::state_t(write ? STATE_WRITER : STATE_ACTIVEREA… in try_acquire()
587 …_EXPORTED_FUNC acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) { in acquire() argument
588 queuing_rw_mutex_impl::acquire(m, s, write); in acquire()
591 …ORTED_FUNC try_acquire(d1::queuing_rw_mutex& m, d1::queuing_rw_mutex::scoped_lock& s, bool write) { in try_acquire() argument
592 return queuing_rw_mutex_impl::try_acquire(m, s, write); in try_acquire()
/oneTBB/.github/workflows/
H A Dissue_labeler.yml26 pull-requests: write
27 issues: write
H A Dlabeler.yml22 pull-requests: write
/oneTBB/doc/main/tbb_userguide/
H A Dconcurrent_hash_map.rst91 act as smart pointers. An *accessor* represents *update* (*write*)
125 requests write access. Therefore before removing the key, it waits on
H A DWorking_on_the_Assembly_Line_pipeline.rst188 write the chunks in the same order. All ``serial_in_order`` filters
202 functor is the simplest. All it has to do is write a ``TextSlice`` to a
227 fprintf(stderr,"Can't write into file '%s'\n", OutputFileName);
H A DMutual_Exclusion.rst69 The following shows an alternative way to write ``AllocateNode``:
H A Dparallel_for_os.rst50 identifiers without having to write out the namespace prefix ``oneapi::tbb``
H A Dparallel_reduce.rst89 loop does not write to any of the other locations, and hoist the
/oneTBB/doc/GSG/
H A Dintro.rst19 Use oneTBB to write scalable applications that:
/oneTBB/
H A DREADME.md7 The library lets you easily write parallel programs that take full advantage of the multi-core perf…
/oneTBB/examples/graph/fgbzip2/
H A Dfgbzip2.cpp113 m_outputStream.write(buffer.b, buffer.len); in writeChunk()
/oneTBB/examples/parallel_for/polygon_overlay/
H A DREADME.md52 * `--csv filename` - write timing data to CSV-format file.
/oneTBB/doc/
H A DDoxyfile.in1730 # section "Doxygen usage" for information on how to let doxygen write the
1865 # Note: WordPad (write) and others do not support links.