On 09/05/2014 05:41 AM, andy pugh wrote:
> Are there any basic guidleines about thread safety on such a platform?
> One thing that somewhat worried me was when the main developer talked
> about "wrapping eveything in C++ for readability"  whereas AFAIK all
> Linux realtime code is pure C?
>

The C++11 standard addresses threads and a memory model necessary for 
reasoning about concurrency.

Here is a reading list.  If you have about three hours to spare, Herb 
Sutter's "atomic<> weapons" videos will be enlightening.

Stroustrup
http://www.stroustrup.com/C++11FAQ.html#memory-model
http://www.stroustrup.com/C++11FAQ.html#std-atomics
http://www.stroustrup.com/C++11FAQ.html#std-threads
http://www.stroustrup.com/C++11FAQ.html#std-mutex
http://www.stroustrup.com/C++11FAQ.html#std-lock
http://www.stroustrup.com/C++11FAQ.html#std-condition
http://www.stroustrup.com/C++11FAQ.html#std-future
http://www.stroustrup.com/C++11FAQ.html#std-async

GotW
http://herbsutter.com/2013/05/24/gotw-6a-const-correctness-part-1-3/
http://herbsutter.com/2013/05/28/gotw-6b-solution-const-correctness-part-2/
http://herbsutter.com/2014/01/13/gotw-95-solution-thread-safety-and-synchronization/

C++ and Beyond 2012: Herb Sutter (Videos)
http://channel9.msdn.com/posts/C-and-Beyond-2012-Herb-Sutter-You-dont-know-blank-and-blank
http://channel9.msdn.com/Shows/Going+Deep/C-and-Beyond-2012-Herb-Sutter-Concurrency-and-Parallelism
http://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Herb-Sutter-atomic-Weapons-1-of-2
http://channel9.msdn.com/Shows/Going+Deep/Cpp-and-Beyond-2012-Herb-Sutter-atomic-Weapons-2-of-2

-- 
Chris Lesiak
Principal Design Engineer, Software
LI-COR, Inc.
chris.les...@licor.com

Any opinions expressed are those of the author and
do not necessarily represent those of his employer.


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to