Skip to content

Added attributes to several functions in std.concurrency#5265

Merged
dlang-bot merged 1 commit intodlang:masterfrom
JackStouffer:concurrency-attrs
Mar 15, 2017
Merged

Added attributes to several functions in std.concurrency#5265
dlang-bot merged 1 commit intodlang:masterfrom
JackStouffer:concurrency-attrs

Conversation

@JackStouffer
Copy link
Contributor

No description provided.

@dukc
Copy link
Contributor

dukc commented Mar 15, 2017

Since it still compiles, and they are non-templated non-overridable member functions, I can't think of anything that could go wrong there. I'd say it should be merged with confidence.

* call = The routine to call when the queue is full.
*/
final void setMaxMsgs( size_t num, bool function(Tid) call )
final void setMaxMsgs( size_t num, bool function(Tid) call ) @safe @nogc pure
Copy link
Contributor

Choose a reason for hiding this comment

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

This is potentially a bit weird as it allows arbitrarily unsafe callbacks to be set from @safe code. Given that calling the delegate will be @system, everything should be okay, though, without making it excessively easy to introduce safety holes in the future.

@dlang-bot dlang-bot merged commit 4daf89f into dlang:master Mar 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants