import * as tsplus_module_1 from "@effect/core/stm/TReentrantLock/operations/TReentrantLock/writeLocked";
import * as tsplus_module_2 from "@effect/core/stm/TReentrantLock/operations/TReentrantLock/readLocked";
import * as tsplus_module_3 from "@effect/core/stm/STM/operations/zipWith";
/**
 * Determines if any fiber has a read or write lock.
 *
 * @tsplus getter ets/TReentrantLock locked
 */

export function locked(self) {
  return tsplus_module_3.zipWith_(tsplus_module_2.readLocked(self), () => tsplus_module_1.writeLocked(self), (read, write) => read || write);
}
//# sourceMappingURL=locked.mjs.map