Giter Site home page Giter Site logo

latches's Introduction

Hi there 👋

I'm Mirro Mutth, you can call me "mirror" in English or "ミロ" in Japanese.

Backend Architect 🧐, Developer 🤔, Gamer 🤪, Animation/Manga Fan 🥰

Rust 🤩, Kotlin 😍, Golang 🥰, Java 😘, JavaScript/TypeScript 😍, C# 🥳

ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʕ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ•̫͡•ʕ•̫͡•ʔ•̫͡•ʔ

Languages: English, Japanese, Chinese (are we talking about human language, right?)

latches's People

Contributors

eagr avatar mirromutth avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

eagr

latches's Issues

Full support for timeouts

For now, futex and sync (with atomic-wait) implementation does not have support for waiting with a timeout.

macOS does have the __ulock_wait syscall that do support a timeout, but it's a private/unstable API

Usage of private APIs can result in software being rejected from Apple's app stores

See also m-ou-se/atomic-wait#4

There have two solutions:

  • Waits for Apple to expose a public API for futex/atomic-wait
  • Implements it as a global pool containing mutexes and condition variables

The last option sounds like the only option I can to do something. But, the most common use case for latch is waiting without timeout. The last option will significantly increase the code size for a rare case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.