All Projects → LK4D4 → trylock

LK4D4 / trylock

Licence: MIT license
TryLock for Go

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to trylock

Pull
🤖 Keep your forks up-to-date via automated PRs
Stars: ✭ 3,364 (+5075.38%)
Mutual labels:  sync
client-side-databases
An implementation of the exact same app in Firestore, AWS Datastore, PouchDB, RxDB and WatermelonDB
Stars: ✭ 787 (+1110.77%)
Mutual labels:  sync
sicksync
Don’t accept the available as the preferable. Go the extra mile with extra speed.
Stars: ✭ 67 (+3.08%)
Mutual labels:  sync
Go Fastdfs
go-fastdfs 是一个简单的分布式文件系统(私有云存储),具有无中心、高性能,高可靠,免维护等优点,支持断点续传,分块上传,小文件合并,自动同步,自动修复。Go-fastdfs is a simple distributed file system (private cloud storage), with no center, high performance, high reliability, maintenance free and other advantages, support breakpoint continuation, block upload, small file merge, automatic synchronization, automatic r…
Stars: ✭ 2,923 (+4396.92%)
Mutual labels:  sync
React Scroll Sync
Synced scroll position across multiple scrollable elements
Stars: ✭ 252 (+287.69%)
Mutual labels:  sync
git2gus
A Github application to keep issues in sync with Agile Accelerator
Stars: ✭ 27 (-58.46%)
Mutual labels:  sync
S3sync
Really fast sync tool for S3
Stars: ✭ 224 (+244.62%)
Mutual labels:  sync
bookmark
chrome插件。"Bookmark" 帮助用户处理Chrome书签中"其他书签",解决书签过多难以保存,查阅不变和管理不变的问题。有存储"临时"书签,分类保存书签,快捷键,自定义设置,快捷查看书签,高效管理书签等功能。
Stars: ✭ 34 (-47.69%)
Mutual labels:  sync
React Native Storage
local storage wrapper for both react-native and browser. Support size controlling, auto expiring, remote data auto syncing and getting batch data in one query.
Stars: ✭ 2,822 (+4241.54%)
Mutual labels:  sync
CryptoSync
Cross-platform end-to-end encryption cloud sync client ☁️ 🔒
Stars: ✭ 38 (-41.54%)
Mutual labels:  sync
Realmcontent
Light Realm-powered content management system
Stars: ✭ 237 (+264.62%)
Mutual labels:  sync
Plex Sync
🎬 Command line utility for synchronizing Plex Media Server watched / seen status between multiple servers
Stars: ✭ 239 (+267.69%)
Mutual labels:  sync
Notion-GCal-Sync
A Python script to automate the syncing of tasks between Google Calendar and the all-in-one productivity workspace, Notion. It utilizes API and is customizable for your own needs. Free to use.
Stars: ✭ 120 (+84.62%)
Mutual labels:  sync
Realm Cocoa
Realm is a mobile database: a replacement for Core Data & SQLite
Stars: ✭ 14,778 (+22635.38%)
Mutual labels:  sync
ezcontentstaging
eZPublish Legacy extension allowing content synchronization between different installations
Stars: ✭ 17 (-73.85%)
Mutual labels:  sync
Sync
JSON to Core Data and back. Swift Core Data Sync.
Stars: ✭ 2,538 (+3804.62%)
Mutual labels:  sync
ChronoChat
A simple but interesting demo to visualize how ChronoSync library works
Stars: ✭ 16 (-75.38%)
Mutual labels:  sync
netbox-sync
Sync objects from VMware or redfish sources to NetBox
Stars: ✭ 172 (+164.62%)
Mutual labels:  sync
template-sync-action
🔄 Github action to sync repository with a template repository
Stars: ✭ 12 (-81.54%)
Mutual labels:  sync
sync-pkg
Minimalist CLI to sync only basic properties from package.json to bower.json
Stars: ✭ 15 (-76.92%)
Mutual labels:  sync

trylock - TryLock implementation for Go

Build Status GoDoc

trylock uses unsafe, which is sorta "unsafe", but should work until sync.Mutex will change its layout (I hope it never will).

Usage

type LockedStruct struct {
	mu trylock.Mutex
}

storage := &LockedStruct{}

if storage.mu.TryLock() {
	// do something with storage
} else {
	// return busy or use some logic for unavailable storage
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].