Skip to content

Add condition variable wrapper#17

Merged
jonatanklosko merged 4 commits intoelixir-nx:mainfrom
brodeuralexis:feature/condition-variable
Oct 7, 2025
Merged

Add condition variable wrapper#17
jonatanklosko merged 4 commits intoelixir-nx:mainfrom
brodeuralexis:feature/condition-variable

Conversation

@brodeuralexis
Copy link
Copy Markdown
Contributor

In line with fine::Mutex and fine::SharedMutex, this commit adds a wrapper, fine::ConditionVariable for ErlNifCond with an API similar if not identifical to std::condition_variable.

In line with `fine::Mutex` and `fine::SharedMutex`, this commit adds a
wrapper, `fine::ConditionVariable` for `ErlNifCond` with an API similar
if not identifical to `std::condition_variable`.
Comment thread c_include/fine/sync.hpp Outdated
Comment thread test/c_src/finest.cpp Outdated
While the function shouldn't be used, deprecation is not an apt choice
to indicate that it should not be used.  The deprecation notice is
replaced with a prominent warning in the function's documentation.
Copy link
Copy Markdown
Member

@jonatanklosko jonatanklosko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect :)

Comment thread test/c_src/finest.cpp Outdated
@jonatanklosko jonatanklosko merged commit a1be2f8 into elixir-nx:main Oct 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants