Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1182,12 +1182,11 @@ public Thread newThread(Runnable r)
* wraps a {@code ByteBuffer} and the {@link Output.State Output.State}
* that protects it.
*<p>
* {@code BufferWrapper} installs <em>itself</em> as the inherited
* {@code m_state} field, so {@code ByteBufferInputStream}'s methods
* synchronize on it rather than the {@code State} object, for no
* interference with the writing thread. The {@code pin} and
* {@code unpin} methods, of course, forward to those of the
* native state object.
* {@code BufferWrapper} installs <em>itself</em> as the
* {@code ByteBufferInputStream}'s lock object, so its methods
* synchronize on this rather than anything that would interfere with
* the writing thread. The {@code pin} and {@code unpin} methods,
* of course, forward to those of the native state object.
*/
static class BufferWrapper
extends ByteBufferInputStream
Expand Down