tokio-linux-aio icon indicating copy to clipboard operation
tokio-linux-aio copied to clipboard

Support futures cancellation. Migrate to parking_lot

Open glebpom opened this issue 5 years ago • 0 comments

The current implementation doesn't support future cancellation. If the future that scheduled AIO action was canceled, the data (which was previously sent in aio_data) will be freed, but AioPollFuture will try to unsafely reuse the freed pointer. This PR fixes the problem but unfortunately introduces some performance penalty.

glebpom avatar Mar 01 '19 11:03 glebpom