Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] linux-gtk low level synchronization

In linux-gtk-x86, org.eclipse.swt.internal.gtk.OS _all_ native calls to GTK are surrounded by a synchronization.

lock.lock();
try{
   _gtk_tree_model_get_path(tree_model, iter);
} finally {
  lock.unlock();
}

On win32-x86 this is not the case. The win API functions are called directly.

Now i wonder why this is the case. SWT already checks for only be called in the GUI thread.
Why is this synchronization in all low level calls necessary?
Isn't this a very huge performance hit?

Back to the top