native_synchronization

0.3.1

Low level synchronization primitives built on dart:ffi.

Download archive

Readme

package:native_synchronization pub package package publisher

This package exposes a portable interface for low-level thread synchronization primitives like Mutex and ConditionVariable.

It also provides some slightly more high-level synchronization primitives like Mailbox built on top of low-level primitives.

Status: experimental

NOTE: This package is currently experimental and published under the labs.dart.dev pub publisher in order to solicit feedback.

For packages in the labs.dart.dev publisher we generally plan to either graduate the package into a supported publisher (dart.dev, tools.dart.dev) after a period of feedback and iteration, or discontinue the package. These packages have a much higher expected rate of API and breaking changes.

Your feedback is valuable and will help us evolve this package. For general feedback, suggestions, and comments, please file an issue in the bug tracker.

Changelog

0.3.1

  • Update the pubspec repository field to reflect the repo move.

0.3.0

  • Add a closed state to Mailbox.

0.2.0

  • Lower SDK lower bound to 3.0.0.

0.1.0

  • Initial version.
  • Expose Mutex and ConditionVariable
  • Implement Mailbox.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add native_synchronization
pubspec.yaml
name: native_synchronization
description: Low level synchronization primitives built on dart:ffi.
version: 0.3.1
repository: https://github.com/dart-lang/labs/tree/main/pkgs/native_synchronization

environment:
  sdk: ">=3.0.0 <4.0.0"

dependencies:
  ffi: ^2.1.0

dev_dependencies:
  dart_flutter_team_lints: ^3.0.0
  test: ^1.16.0

Version history

VersionPublishedArchiveSHA-256
0.1.0Cached · Upstream SHA-256 matchedDownload9d491fe3…66a3f5
0.2.0Cached · Upstream SHA-256 matchedDownloadff200fe0…8133ab
0.3.0Cached · Upstream SHA-256 matchedDownloade1df9b25…58325e
0.3.1Cached · Upstream SHA-256 matchedDownload047fa366…9d9d1d

Dependencies

ffi "^2.1.0"