lib/k2hshmupdater.cc
bool K2HShmUpdater::UpdateArea(K2HShm* pk2hshm)
{
	if(!pk2hshm){
		ERR_K2HPRN("Parameter is wrong.");
		return false;
	}

	while(!fullock::flck_trylock_noshared_mutex(&K2HShmUpdater::lockval));		// no call sched_yield()

	bool	change	= false;
	bool	result	= pk2hshm->CheckAreaUpdate(change);

	fullock::flck_unlock_noshared_mutex(&K2HShmUpdater::lockval);

	return result;
}
//
// Checking & updating k2hash area does not check nest(counter).
// So this method should be called any nest level.
//
Checking & updating k2hash area does not check nest(counter).
So this method should be called any nest level.
Checking & updating k2hash area does not check nest ( counter ) . So this method should be called any nest level .
bool K2HShmUpdater::UpdateArea(K2HShm* pk2hshm)
{
	if(!pk2hshm){
		ERR_K2HPRN("Parameter is wrong.");
		return false;
	}
	while(!fullock::flck_trylock_noshared_mutex(&K2HShmUpdater::lockval));		
	bool	change	= false;
	bool	result	= pk2hshm->CheckAreaUpdate(change);
	fullock::flck_unlock_noshared_mutex(&K2HShmUpdater::lockval);
	return result;
}
bool K2HShmUpdater :: UpdateArea ( K2HShm * pk2hshm ) { if ( ! pk2hshm ) { ERR_K2HPRN ( " " ) ; return false ; } while ( ! fullock :: flck_trylock_noshared_mutex ( & K2HShmUpdater :: lockval ) ) ; bool change = false ; bool result = pk2hshm -> CheckAreaUpdate ( change ) ; fullock :: flck_unlock_noshared_mutex ( & K2HShmUpdater :: lockval ) ; return result ; }
Checking & updating k2hash area does not check nest(counter).
Checking & updating k2hash area does not check nest ( counter ) .
// no call sched_yield()