Skip to content

Instantly share code, notes, and snippets.

View ocrickard's full-sized avatar

Oliver Clark Rickard ocrickard

View GitHub Profile
//: Playground - noun: a place where people can play
import Foundation
import UIKit
import Darwin.os.lock
/**
A threadsafe, non-blocking (on the write side), zero-allocation ring-buffer implementation.