dispatch_io_create_with_path should not require a queue with no cleanup
| Originator: | robnapier | ||
| Number: | rdar://15160726 | Date Originated: | 05-Oct-2013 08:14 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
dispatch_io_create_with_path() accepts a cleanup block and a queue to run it on. It is legal to pass nil for the cleanup block (and this would seem to be a common behavior). But if you pass nil as the queue, it crashes, even though there is no block to dispatch. If this queue is used for something other than the cleanup block, the documentation needs to be updated to indicate this.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!