Atomic operations and lock free code

General discussion regarding the development of POCO for contributors.
Posts: 1369
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: Re: Re: Re: Re: Re: Re: Re: Re: Atomic operations and lock free code

Postby alex » 04 Apr 2008, 16:19

First of all, let me say that I really like Peter's 'conditional TBB' proposal.

> Changing these two files should give you a nice speed boost (and I am really interested
> in how much it will improve) throughout the whole POCO libs.

Chris, would you be willing to put some work into this? If so, we can branch the current trunk SVN into sandbox for you to work on and, if things go well, later merge the modifications back to main trunk.

> About mutex use: we try to provide a thread-safe library, so where necessary
> we do a lock, but we try to keep lock times minimal.

If we choose to go with 'conditional TBB' strategy for atomic ops, we may also look into TBB mutexes and seize any opportunity to benefit from them in the same conditional way.

Regarding the original proposal from Chris as well as James' contribution, while I have the utmost respect for such efforts and fully appreciate the emotional attachment to one's own code, I also think we must be prudent and choose what is realistic and objectively best for the project. We do not have nearly the resources Intel has at their disposal. By leveraging that, we can only benefit.


Return to “Contributors”

Who is online

Users browsing this forum: No registered users and 1 guest