RFR: 8310054: ScrollPane insets are incorrect

Phil Race prr at openjdk.org
Thu Jun 15 23:31:59 UTC 2023


On Thu, 15 Jun 2023 23:13:38 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> Now with InvokeFunction, _SetSpans is again called synchronously
No, it's still called *asynchronously*. 


=== 

  INLINE void * InvokeFunction(void*(*ftn)(void)) {
        return (void *)SendMessage(WM_AWT_INVOKE_VOID_METHOD, (WPARAM)ftn, 0);

https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-sendmessage

Sends the specified message to a window or windows.
The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.

===

So how is that not synchronous ?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/14478#issuecomment-1593843155



More information about the client-libs-dev mailing list