mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 22:24:32 +02:00
Init -> constructor
This commit is contained in:
parent
46cd9e0f92
commit
18ac943842
@ -30,10 +30,11 @@ public final class ChunkUploader implements Runnable, SecureNotifiable {
|
|||||||
private final Upload _upload;
|
private final Upload _upload;
|
||||||
private volatile boolean _exit;
|
private volatile boolean _exit;
|
||||||
private final Object _secure_notify_lock;
|
private final Object _secure_notify_lock;
|
||||||
private boolean _notified=false;
|
private boolean _notified;
|
||||||
|
|
||||||
public ChunkUploader(int id, Upload upload)
|
public ChunkUploader(int id, Upload upload)
|
||||||
{
|
{
|
||||||
|
_notified = false;
|
||||||
_secure_notify_lock = new Object();
|
_secure_notify_lock = new Object();
|
||||||
_id = id;
|
_id = id;
|
||||||
_upload = upload;
|
_upload = upload;
|
||||||
|
@ -15,9 +15,9 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif
|
|||||||
|
|
||||||
private static final int SLEEP = 50;
|
private static final int SLEEP = 50;
|
||||||
|
|
||||||
private final Clipboard _sysClip = getDefaultToolkit().getSystemClipboard();
|
private final Clipboard _sysClip;
|
||||||
|
|
||||||
private boolean _notified=false;
|
private boolean _notified;
|
||||||
|
|
||||||
private final ConcurrentLinkedQueue<ClipboardChangeObserver> _observers;
|
private final ConcurrentLinkedQueue<ClipboardChangeObserver> _observers;
|
||||||
|
|
||||||
@ -28,6 +28,8 @@ public final class ClipboardSpy implements Runnable, ClipboardOwner, SecureNotif
|
|||||||
|
|
||||||
|
|
||||||
public ClipboardSpy() {
|
public ClipboardSpy() {
|
||||||
|
_sysClip = getDefaultToolkit().getSystemClipboard();
|
||||||
|
_notified = false;
|
||||||
_contents = null;
|
_contents = null;
|
||||||
_secure_notify_lock = new Object();
|
_secure_notify_lock = new Object();
|
||||||
_observers = new ConcurrentLinkedQueue<>();
|
_observers = new ConcurrentLinkedQueue<>();
|
||||||
|
@ -9,10 +9,11 @@ public final class ProgressMeter implements Runnable, SecureNotifiable
|
|||||||
private final Transference _transference;
|
private final Transference _transference;
|
||||||
private volatile boolean _exit;
|
private volatile boolean _exit;
|
||||||
private final Object _secure_notify_lock;
|
private final Object _secure_notify_lock;
|
||||||
private boolean _notified=false;
|
private boolean _notified;
|
||||||
|
|
||||||
ProgressMeter(Transference transference)
|
ProgressMeter(Transference transference)
|
||||||
{
|
{
|
||||||
|
_notified = false;
|
||||||
_secure_notify_lock = new Object();
|
_secure_notify_lock = new Object();
|
||||||
_transference = transference;
|
_transference = transference;
|
||||||
_exit = false;
|
_exit = false;
|
||||||
|
@ -22,8 +22,10 @@ public final class StreamThrottlerSupervisor implements Runnable, SecureNotifiab
|
|||||||
|
|
||||||
private final Object _secure_notify_lock;
|
private final Object _secure_notify_lock;
|
||||||
|
|
||||||
private boolean _notified=false;
|
private boolean _notified;
|
||||||
|
|
||||||
public StreamThrottlerSupervisor(int maxBytesPerSecInput, int maxBytesPerSecOutput, int slice_size) {
|
public StreamThrottlerSupervisor(int maxBytesPerSecInput, int maxBytesPerSecOutput, int slice_size) {
|
||||||
|
_notified = false;
|
||||||
|
|
||||||
_secure_notify_lock = new Object();
|
_secure_notify_lock = new Object();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user