예제 #1
0
uint32_t lock(int key1,int key2){
	int i;
	uint32_t unlockVar;
	Bitset  b;
	b.Resize(1000);
	
	
	b.Set(key1);
	
	b.Set(key2);	
	unlockVar = m.Lock(b);
	return unlockVar;
}
예제 #2
0
uint32_t lock(T * keys){
	int i;
	uint32_t unlockVar;
	Bitset  b;
	b.Resize(1000);
	
	for(i=0;i<thread_num;i++)
	{
		b.Set(keys[i]);
	}	
	unlockVar = m.Lock(b);
	return unlockVar;
}