All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudbees.groovy.cps.green.Monitor Maven / Gradle / Ivy

There is a newer version: 1.31
Show newest version
package com.cloudbees.groovy.cps.green;

import java.io.Serializable;

/**
 * Stack of monitors that a thread currently owns.
 *
 * @author Kohsuke Kawaguchi
 * @see GreenThreadState#monitor
 */
final class Monitor implements Serializable {
    /**
     * Link to form a stack of monitor.
     */
    final Monitor next;
    /**
     * Object that is locked
     */
    final Object o;

    Monitor(Monitor next, Object o) {
        this.next = next;
        this.o = o;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy