Displaying 1 result from an estimated 1 matches for "newcondit".
2011 Jan 12
1
[LLVMdev] VMKit Runtime Link Error
...Condition notFull;
Condition notEmpty;
*final* Object[] items = *new* Object[100];
*int* putptr, takeptr, count;
*public* BoundedBuffer(*int* init_count)
{
lock = *new* ReentrantLock();
notFull = lock.newCondition();
notEmpty = lock.newCondition();
count = init_count;
putptr = takeptr = 0;
}
*public* *void* put(Object x) *throws* InterruptedException {
lock.lock();
*try* {...