For all source directories outside of simgear/scene, which really depends very hard on osg, avoid using osg classes. This should reenable the use of some basic and scenegraph independent parts of simgear without the the need for osg.
16 lines
284 B
C++
16 lines
284 B
C++
#include "StringTable.hxx"
|
|
|
|
#include <simgear/threads/SGGuard.hxx>
|
|
|
|
namespace simgear
|
|
{
|
|
using namespace std;
|
|
|
|
const string* StringTable::insert(const string& str)
|
|
{
|
|
SGGuard<SGMutex> lock(_mutex);
|
|
StringContainer::iterator it = _strings.insert(str).first;
|
|
return &*it;
|
|
}
|
|
}
|