From c8a27139fe6b559bca2fbb64bd180c8fd2c2fa32 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 26 Jul 2010 19:44:50 +0000 Subject: Modify CPUID so all the check functions are purely inline. Add a new initialize() call which must be called prior to use of any other functions. --- src/libstate/libstate.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/libstate') diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp index 83fb31406..1db9ca44c 100644 --- a/src/libstate/libstate.cpp +++ b/src/libstate/libstate.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -241,6 +242,8 @@ RandomNumberGenerator& Library_State::global_rng() */ void Library_State::initialize(bool thread_safe) { + CPUID::initialize(); + if(mutex_factory) throw Invalid_State("Library_State has already been initialized"); -- cgit v1.2.3