jogamp
›
jogl
Login
Register
Search
everywhere
only in this topic
Advanced Search
AWTUtil.lockToolkit
Classic
List
Threaded
♦
♦
Locked
2 messages
Options
Loading...
Subscribe via email
Move topic
Pin topic
Unpin topic
Lock topic
Unlock topic
Delete this topic
Delete this topic
Change title and meta tags
Embed post
Permalink
Christophe LAFOLET
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Feb 17, 2022; 9:54am
AWTUtil.lockToolkit
9 posts
This post was updated on
Feb 17, 2022; 11:58am
.
I'm using JOGL 2.3.2 with Swing/AWT ( property sun.java2d.opengl=true )
I have several threads which call simultaneously Java2D.invokeWithOGLSharedContextCurrent() or Java2D.invokeWithOGLContextCurrent().
The first thread set AWTUtil.lockedToolkit to true
The others threads get a GLException "Toolkit already locked"
In my context, SunToolkit.awtLock() is called
So, why do we need the static AWTUtil.lockedToolkit ?
gouessej
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
More
Loading...
Reply to author
Edit post
Move post
Delete this post
Delete this post and replies
Change post date
Print post
Permalink
Raw mail
Mar 08, 2022; 1:36pm
Re: AWTUtil.lockToolkit
Administrator
6035 posts
Sorry for the late reply. Several threads shouldn't call that simultaneously. Have you tried to use invokeAndWait?
Julien Gouesse |
Personal blog
|
Website
Free forum by Nabble
Edit this page