Blog Archive for / 2014 / 05 /
Comments on the C++ Concurrency TS
Wednesday, 28 May 2014
It's been a while since I wrote any papers for the C++ committee, but I've written two for the committee mailing prior to the upcoming committee in Rapperswil:
- N4032: Comments on continuations and executors
- N4033: synchronized_value<T> for associating a mutex with a value
The first provides comments, and suggestions for improvements on the concurrency TS based on implementing continuations for Just::Thread V2, and executors for an unreleased internal build of Just::Thread.
The second proposes to standardize
the synchronized_value
class template from Just::Thread
Pro, with a couple of modifications.
Let me know if you have any comments.
Posted by Anthony Williams
[/ news /] permanent link
Tags: multithreading, concurrency, C++17
Stumble It! | Submit to Reddit | Submit to DZone
If you liked this post, why not subscribe to the RSS feed or Follow me on Twitter? You can also subscribe to this blog by email using the form on the left.
just::thread C++11 and C++14 Thread Library V2.0 released
Monday, 19 May 2014
I am pleased to announce that version 2.0 of just::thread
, our C++11 and
C++14 Thread Library has just been released with new features and support for
new compilers.
This release includes the new std::shared_timed_mutex
and
std::shared_lock
from C++14, which allow for multiple readers to hold a shared lock
on a mutex or one writer to hold an exclusive lock.
Also included are extensions to the futures from the upcoming C++ Concurrency
Technical Specification in the form of
continuations. std::future<>
and std::shared_future<>
now have an additional member
function "then()
" which allows a further task to be scheduled when
the future becomes "ready". This allows for improved support for asynchronous
tasks.
There are also new functions: jss::when_any
and jss::when_all
which encapsulate a set of futures into a single
future which becomes ready when either one or all of the provided futures
becomes ready. This can be used with continuations to schedule asynchronous
tasks to run when the prerequisites are ready.
Finally, a new lock wrapper jss::generic_lock_guard
is provided. This is a
concrete type rather than a template, and will lock any type of mutex which
provides lock and unlock member functions.
This release also includes support for Microsoft Visual Studio 2013 and gcc 4.8.
Get your copy of Just::Thread
Purchase your copy and get started with the C++11 and C++14 thread library now.
Posted by Anthony Williams
[/ news /] permanent link
Tags: multithreading, concurrency, C++0x, C++11, C++14
Stumble It! | Submit to Reddit | Submit to DZone
If you liked this post, why not subscribe to the RSS feed or Follow me on Twitter? You can also subscribe to this blog by email using the form on the left.
ACCU 2014 - slides
Monday, 19 May 2014
This year's ACCU conference was at the Marriott hotel in Bristol again. As ever, the conference itself was enjoyable, educational and exhausting in equal measure, and it was good to meet up with people again.
This year, I was presenting on "The continuing future of C++ concurrency", with an overview of
the additions to the Standard C++ concurrency libraries proposed for the C++ concurrency TS and
C++17, including: continuations, executors, and parallel algorithms, as well as
std::shared_timed_mutex
from C++14.
My presentation was well-attended, and there were lots of interesting questions.
The slides are available here.
Posted by Anthony Williams
[/ news /] permanent link
Tags: conferences, accu, cplusplus
Stumble It! | Submit to Reddit | Submit to DZone
If you liked this post, why not subscribe to the RSS feed or Follow me on Twitter? You can also subscribe to this blog by email using the form on the left.
Design and Content Copyright © 2005-2025 Just Software Solutions Ltd. All rights reserved. | Privacy Policy