Single Thread Continuation

Attila Kelemen attila.kelemen85 at gmail.com
Mon Jul 3 12:27:52 UTC 2023


Cristian Lorenzetto <cristian.lorenzetto at gmail.com> ezt írta (időpont:
2023. júl. 3., H, 14:09):

> SynchronousQueue contains thread locks, , it is not suitable for fibers.
> Replace this class with another
>
>>
>>
Aside from this class just being an example on how such a code would look
like, I don't see why `SynchronousQueue` is "not suitable for fibers".
Locks work perfectly well with VT, and even `synchronized` does, if it only
does some simple computation in a `synchronized` block (since it wouldn't
be unmounted anyway).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20230703/e77566fb/attachment.htm>


More information about the loom-dev mailing list