|
|
@ -38,7 +38,7 @@ public class LWJGLBufferAllocator implements BufferAllocator { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public synchronized void destroyDirectBuffer(final Buffer buffer) { |
|
|
|
public void destroyDirectBuffer(final Buffer buffer) { |
|
|
|
final long stamp = stampedLock.writeLock(); |
|
|
|
final long stamp = stampedLock.writeLock(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
super.destroyDirectBuffer(buffer); |
|
|
|
super.destroyDirectBuffer(buffer); |
|
|
@ -48,7 +48,7 @@ public class LWJGLBufferAllocator implements BufferAllocator { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public synchronized ByteBuffer allocate(final int size) { |
|
|
|
public ByteBuffer allocate(final int size) { |
|
|
|
final long stamp = stampedLock.writeLock(); |
|
|
|
final long stamp = stampedLock.writeLock(); |
|
|
|
try { |
|
|
|
try { |
|
|
|
return super.allocate(size); |
|
|
|
return super.allocate(size); |
|
|
|