library/src/blockclass/BP-BlockClass.cc
// Use the following to lock the mysql session before doing any
// threaded db work.
Use the following to lock the mysql session before doing any
threaded db work.
Use the following to lock the mysql session before doing any threaded db work .
BP_ERROR_T Block::mysqlSemLock()
{
	if(!this->mysqlSession)
		return ERR_FAILURE;
	return BP_MySQLSemLock(this->mysqlSession);
}
BP_ERROR_T Block :: mysqlSemLock ( ) { if ( ! this -> mysqlSession ) return ERR_FAILURE ; return BP_MySQLSemLock ( this -> mysqlSession ) ; }
Use the following to lock the mysql session before doing any
threaded db work.
Use the following to lock the mysql session before doing any threaded db work .
// ensure we have a mysql session // NOTE: Don't enter critical section. // return the lock value