sqldata/sqldata.cpp
// Notify that the meta data task completed
Notify that the meta data task completed
Notify that the meta data task completed
void SqlData::NotifyMetaCompletion(SqlMetaTask &task)
{
	Os::EnterCriticalSection(&_task_queue_critical_section);
	for(std::list<SqlMetaTask>::iterator i = _meta_in_progress.begin(); i != _meta_in_progress.end(); i++)
	{
		if((*i).type == task.type && (*i).statement == task.statement)
		{
			_meta_in_progress.erase(i);
			break;
		}
	}
	Os::LeaveCriticalSection(&_task_queue_critical_section);
}
void SqlData :: NotifyMetaCompletion ( SqlMetaTask & task ) { Os :: EnterCriticalSection ( & _task_queue_critical_section ) ; for ( std :: list < SqlMetaTask > :: iterator i = _meta_in_progress . begin ( ) ; i != _meta_in_progress . end ( ) ; i ++ ) { if ( ( * i ) . type == task . type && ( * i ) . statement == task . statement ) { _meta_in_progress . erase ( i ) ; break ; } } Os :: LeaveCriticalSection ( & _task_queue_critical_section ) ; }
Notify that the meta data task completed
Notify that the meta data task completed
// Find the task in the list