A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cztomczak/cefpython/issues/102 below:

Remove GIL to avoid deadlocks when calling CEF functions · Issue #102 · cztomczak/cefpython · GitHub

In the pxd file, function needs to be defined as "nogil". In the pyx file the call must use the "with nogil" statement.

From Cython's documentation:

Note that acquiring the GIL is a blocking thread-synchronising operation, and therefore potentially costly. It might not be worth releasing the GIL for minor calculations. Usually, I/O operations and substantial computations in parallel code will benefit from it.

Revision ec1ce78 removes the GIL lock from the following calls: Initialize(), Shutdown(), CreateBrowserSync(), SetOsModalLoop(), QuitMessageLoop(), CefExecuteProcess().

Keeping this issue Open, as there still might be some functions from which the GIL lock should also be removed.

Original issue reported on code.google.com by czarek.t...@gmail.com on 8 Jan 2014 at 11:15


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4