Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Band aid to make threaded loop a little easier to work with #21452

Merged
merged 1 commit into from
Apr 22, 2017

Conversation

yuyichao
Copy link
Contributor

@yuyichao yuyichao force-pushed the yyc/threads/bandaid branch from 914933e to bb8adea Compare April 20, 2017 15:35
@yuyichao yuyichao added the multithreading Base.Threads and related functionality label Apr 20, 2017
@yuyichao yuyichao force-pushed the yyc/threads/bandaid branch from bb8adea to c9b7eac Compare April 21, 2017 13:44
@@ -18,17 +18,25 @@ on `threadid()`.
"""
nthreads() = Int(unsafe_load(cglobal(:jl_n_threads, Cint)))

# Only read/write by the main thread
Copy link
Contributor

Choose a reason for hiding this comment

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

written?

* Print a warning if an error occurs in the threaded loop (Helps #17532)
* Make recursive threaded loops "work" (Fix #18335).

  The proper fix will be tracked by #21017
@yuyichao yuyichao force-pushed the yyc/threads/bandaid branch from c9b7eac to ca77f51 Compare April 21, 2017 13:51
@yuyichao yuyichao merged commit dc6c583 into master Apr 22, 2017
@yuyichao yuyichao deleted the yyc/threads/bandaid branch April 22, 2017 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

recursive @threads blocks unsupported
2 participants