]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/commands.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / commands.hxx
index c9ad2370f9cd6e27e631e1f6e060d139d7ac5495..2ffabf0ac12370b535eb9c65f3675fe24b66bdad 100644 (file)
@@ -16,7 +16,6 @@
 #include <string>
 #include <map>
 
-#include <simgear/threads/SGThread.hxx>
 #include <simgear/math/sg_types.hxx>
 
 // forward decls
@@ -87,16 +86,16 @@ private:
    }
    
 public:
-
+   /**
+    * Default constructor (sets instance to created item)
+    */
+   SGCommandMgr ();
 
   /**
-   * Destructor.
+   * Destructor. (sets instance to NULL)
    */
   virtual ~SGCommandMgr ();
 
-  /**
-   * Implement the classical singleton.
-   */
   static SGCommandMgr* instance();
 
   /**
@@ -155,10 +154,7 @@ public:
    */
   bool removeCommand(const std::string& name);
 protected:
-  /**
-   * Default constructor.
-   */
-  SGCommandMgr ();
+
 
 
 private:
@@ -166,8 +162,6 @@ private:
   typedef std::map<std::string,Command*> command_map;
   command_map _commands;
 
-  static SGMutex _instanceMutex;
-
 };
 
 #endif // __COMMANDS_HXX