Displaying 1 result from an estimated 1 matches for "boundedbuffer".
Did you mean:
bounce_buffer
2011 Jan 12
1
[LLVMdev] VMKit Runtime Link Error
...sfiedLinkError:
sun.misc.Unsafe.unpark(Ljava/lang/Object;)V
after using the function :
void java.util.concurrent.locks.Condition.await()
My test program is as follows:
*import* *java.lang*.*;
*import* *java.util.Map*;
*import* *java.io*.*;
*import* java.util.concurrent.locks.*;
*class* BoundedBuffer {
Lock lock;
Condition notFull;
Condition notEmpty;
*final* Object[] items = *new* Object[100];
*int* putptr, takeptr, count;
*public* BoundedBuffer(*int* init_count)
{
lock = *new* ReentrantLock();...