align

final class align(size: Int, group: String) extends StaticAnnotation

Allows to align field or class layout to expected size reflected in number of bytes. Can be aliased as Contended for cross-compiling with the JVM.

Value parameters:
group

Optional tag allowing to put multiple fields in the same aligned memory area

size

Size of the alignment represented in number of bytes

class Object
trait Matchable
class Any

Value members

Constructors

def this(size: Int)
def this(group: String)

Dynamic, platform specific alignment. Can be used as replecement JVM @Contended

Dynamic, platform specific alignment. Can be used as replecement JVM @Contended

def this()

Dynamic, platform specific alignment. Can be used as replecement JVM @Contended

Dynamic, platform specific alignment. Can be used as replecement JVM @Contended