Fix formatting in Core.cpp

develop
Petr Mrázek 2011-08-07 08:41:46 +02:00
parent fedb6150f4
commit d93032de3b
1 changed files with 21 additions and 21 deletions

@ -430,6 +430,7 @@ bool Core::Init()
// create mutex for syncing with interactive tasks
StackMutex = new mutex();
AccessMutex = new mutex();
misc_data_mutex=new mutex();
core_cond = new Core::Cond();
// create plugin manager
plug_mgr = new PluginManager(this);
@ -442,7 +443,6 @@ bool Core::Init()
HotkeyMutex = new mutex();
HotkeyCond = new condition_variable();
thread * HK = new thread(fHKthread, (void *) temp);
misc_data_mutex=new mutex();
started = true;
return true;
}
@ -475,19 +475,19 @@ std::string Core::getHotkeyCmd( void )
return returner;
}
void Core::RegisterData(void *p,std::string key)
void Core::RegisterData( void *p, std::string key )
{
misc_data_mutex->lock();
misc_data_map[key]=p;
misc_data_map[key] = p;
misc_data_mutex->unlock();
}
void *Core::GetData(std::string key)
void *Core::GetData( std::string key )
{
misc_data_mutex->lock();
std::map<std::string,void*>::iterator it=misc_data_map.find(key);
if (it!=misc_data_map.end())
if ( it != misc_data_map.end() )
{
void *p=it->second;
misc_data_mutex->unlock();