import * as tsplus_module_1 from "@effect/core/stm/TRef/operations/get";
import * as tsplus_module_2 from "@effect/core/stm/STM/operations/map";
import { concreteTReentrantLock } from "@effect/core/stm/TReentrantLock/operations/_internal/InternalTReentrantLock";
/**
 * Determines if any fiber has a read lock.
 *
 * @tsplus getter ets/TReentrantLock readLocked
 */

export function readLocked(self) {
  void 0;
  return tsplus_module_2.map_(tsplus_module_1.get(self.data), _ => _.readLocks > 0);
}
//# sourceMappingURL=readLocked.mjs.map