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

de.sciss.mellite.gui.impl.CursorHolder.scala Maven / Gradle / Ivy

/*
 *  CursorHolder.scala
 *  (Mellite)
 *
 *  Copyright (c) 2012-2016 Hanns Holger Rutz. All rights reserved.
 *
 *  This software is published under the GNU General Public License v3+
 *
 *
 *  For further information, please contact Hanns Holger Rutz at
 *  [email protected]
 */

package de.sciss.mellite.gui.impl

import de.sciss.lucre.stm.{Cursor, Sys}

trait CursorHolder[S <: Sys[S]] {
  protected def cursor: Cursor[S]

  final protected def atomic[A](fun: S#Tx => A): A = cursor.step(fun)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy