lp:~gpr/linuxdcpp/sync

Created by Gennady Proskurin on 2010-08-15 and last modified on 2010-08-16

Improving multi-thread synchronization

Get this branch:
bzr branch lp:~gpr/linuxdcpp/sync
Only Gennady Proskurin can upload to this branch. If you are Gennady Proskurin please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Gennady Proskurin
Project:
LinuxDC++
Status:
Mature

Recent revisions

391. By Gennady Proskurin on 2010-08-15

Remove unused include <sched.h>, which was used for sched_yield() earlier.

390. By Gennady Proskurin on 2010-08-15

Remove unused Thread::safeExchange function and associated mutex.

389. By Gennady Proskurin on 2010-08-15

Use Atomic<bool> for "refreshing" variable.

388. By Gennady Proskurin on 2010-08-15

Implement exchange() function for Atomic template (only for memory_ordering_strong for now).
It assigns new value to atomic, returns old value.

387. By Gennady Proskurin on 2010-08-15

Remove Thread::safeInc/safeDec functions. They are unused now.

386. By Gennady Proskurin on 2010-08-15

Change BufferedSocket::sockets to Atomic (strong variant).

385. By Gennady Proskurin on 2010-08-15

Implement "strong memory ordering" variant of Atomic template.
For counters in "struct Counts" "weak" variant is sufficient.

384. By Gennady Proskurin on 2010-08-15

Remove unused Thread::yield functions.

383. By Gennady Proskurin on 2010-08-15

include <boost/detail/atomic_count.hpp> -> <boost/smart_ptr/detail/atomic_count.hpp>
The later header is garanteed to have necessary memory barrier for refcounting.
For now, it is no-op (it is the same header).

382. By Gennady Proskurin on 2010-08-15

Recheck predicate after wakeup of cond_wait/cond_timedwait

Branch metadata

Branch format:
Branch format 6
Repository format:
Bazaar pack repository format 1 (needs bzr 0.92)
This branch contains Public information 
Everyone can see this information.