C++Now 2014 has ended
Please visit the C++Now website.
Back To Schedule
Friday, May 16 • 2:30pm - 4:00pm
Lifetime and Usage of Global, Thread-local, and Static Data

Log in to save this to your schedule, view media, leave feedback and see who's attending!

C has the facility to declare data, both initialized and uninitialized, that is available to whole programs. C++ extends this with the ability to create global and thread-local objects. As with all objects, global and thread-local objects are constructed at the beginning of their lifetimes and destructed at the end.

This talk will cover what the C++11 standard guarantees concerning global, static, and thread-local object lifetimes.  It will then cover what compilers actually do.  How to use global data for complex initialization will be discussed.  Patterns for dealing with global data and how to minimize global data will also be discussed.

avatar for Daniel Dilts

Daniel Dilts

Firmware Engineer, GE
Daniel Dilts currently works as a Firmware Engineer at General Electric.  His interests range from hardware to software and everything in-between, as evidenced by his BS in Mechanical Engineering obtained at BYU, followed by his later position as a Software Engineer at GE.  Daniel... Read More →

Friday May 16, 2014 2:30pm - 4:00pm MDT

Attendees (0)