You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complex operations within a DispatchQueue seem to not execute on Ubuntu. The code below runs fine on macOS but fails to return the resultLength calculation from the DispatchQueue on Ubuntu 16.04. There are neither errors nor warnings during either compilation or execution. Sadly, I cannot come up with a smaller reproducible example as then the program will work. I'm using a part of the Benchmark game's Regex-Redux challenge: http://benchmarksgame.alioth.debian.org/
The program snippet is missing synchronization between the print statement that is reading resultLength and the async task submitted to the global queue that writes it. For example, create a DispatchGroup instance dg, pass as an argument to the async, and then wait on the group before printing.
Attachment: Download
Environment
Ubuntu 16.04, Swift 3.1.1
Additional Detail from JIRA
md5: 157f897fcdabad3f7104261c7d2989db
Issue Description:
Complex operations within a DispatchQueue seem to not execute on Ubuntu. The code below runs fine on macOS but fails to return the resultLength calculation from the DispatchQueue on Ubuntu 16.04. There are neither errors nor warnings during either compilation or execution. Sadly, I cannot come up with a smaller reproducible example as then the program will work. I'm using a part of the Benchmark game's Regex-Redux challenge: http://benchmarksgame.alioth.debian.org/
The text was updated successfully, but these errors were encountered: