Skip to content

Synchronised keyword #72

@SamTebbs33

Description

@SamTebbs33

The synchronisd keyword should be implemented to ensure safety in a threaded program.

It would work in the same way as it does in Java.

// Synchronised function
synchronised func do() {
    ...
}

// Synchronised block
synchronised (x) {

}

More functionality or a syntax change could be decided upon later on.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions