Call Component methods inside OpenGL render?

Hi everyone,

I see in the OpenGL examples methods are called such as getWidth() and getHeight() from within the OpenGL render. Is this guaranteed to be thread safe?
The OpenGL render thread does sometimes lock the main-thread, but now always, what’s the logic behind this?

If I am allowed to call getWidth(), getHeight(), does it mean I can call any main thread function from OpenGl render or just some Component methods?

I know there are already some topics about this subject but I couldn’t find a clear answer.

Thanks,
Jelle