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

de.sciss.lucre.synth.NodeIdAllocator.scala Maven / Gradle / Ivy

There is a newer version: 3.30.0
Show newest version
/*
 *  NodeIdAllocator.scala
 *  (SoundProcesses)
 *
 *  Copyright (c) 2010-2019 Hanns Holger Rutz. All rights reserved.
 *
 *	This software is published under the GNU Lesser General Public License v2.1+
 *
 *
 *  For further information, please contact Hanns Holger Rutz at
 *  [email protected]
 */

package de.sciss.lucre.synth

import impl.{NodeIdAllocatorImpl => Impl}
import scala.concurrent.stm.InTxn

object NodeIdAllocator {
  def apply(user: Int, initTemp: Int): NodeIdAllocator = new Impl(user = user, initTemp = initTemp)
}
trait NodeIdAllocator{
  def alloc()(implicit tx: InTxn): Int
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy