LaKraven / LKSL

LaKraven Studios Standard Library
http://otapi.com
Other
51 stars 15 forks source link

Async Streams - Initial Implementation #71

Closed LaKraven closed 9 years ago

LaKraven commented 9 years ago

Implement a custom Stream solution capable of having multiple Streams reading different parts of the Stream asynchronously (without blocking).

The only time the Lock will be acquired is if the Stream is being written/modified (or if acquired externally for implementation-specific reasons by the implementing developer's code).

Essentially, each Thread will have its own Caret for reading from within the Stream... so that linear reads/seeks from one Thread will have no bearing on those from another. This eliminates the need for mutually-exclusive Stream access!

LaKraven commented 9 years ago

Note that this work should take place in the "AsyncStream" branch.

LaKraven commented 9 years ago

Completed by 93a83dc