New Early Access builds

Alan Bateman Alan.Bateman at oracle.com
Wed Jul 1 08:51:59 UTC 2020


On 30/06/2020 20:25, Mark Raynsford wrote:
> :
> It's a little circuitous, but the basic issue is that I'm working under
> soft-realtime constraints (3D rendering), and I'm working with APIs such
> as Vulkan that demand that I make requests from specific threads.
>
Can you say a bit more about this? Is there native code where 
pthread_self() must be a specific thread or are there Java libraries in 
the picture? If there are Java libraries in the picture then it may not 
work as you expect because Thread.currentThread() will return the Thread 
object for the virtual thread and maybe the libraries expects it to be a 
specific Thread tied to Vulkan. This is a topic that has come up a few 
times here in the context of UI applications where there seems to be 
interest in using the AWT Event Dispatcher Thread (EDT) as the carrier 
thread. Creating a custom scheduler to queue tasks to the EDT is simple 
but there will be UI code that will not be happy about executing in the 
context of another Thread. It hasn't been a priority to date but 
supporting these types of use-cases will require a few additional APIs.

-Alan


More information about the loom-dev mailing list