| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 37fecd8 commit b1769a5
6 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -239,11 +239,12 @@ Post a task for execution on the thread associated with this task runner. Execut | |||
| 239 | 239 | ||
| 240 | 240 | List of threads in the Browser process: | |
| 241 | 241 | * cef.TID_UI: The main thread in the browser. This will be the same as the main application thread if cefpython.Initialize() is called with a ApplicationSettings.multi_threaded_message_loop value of false. Do not perform blocking tasks on this thread. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. This thread will outlive all other CEF threads. | |
| 242 | - * cef.TID_DB: Used to interact with the database. | ||
| 243 | - * cef.TID_FILE: Used for blocking tasks (e.g. file system access) where the user won't notice if the task takes an arbitrarily long time to complete. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. | ||
| 242 | + * cef.TID_FILE (alias cef.TID_FILE_BACKGROUND): Used for blocking tasks (e.g. file system access) where the user won't notice if the task takes an arbitrarily long time to complete. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. | ||
| 243 | + * cef.TID_FILE_USER_VISIBLE: Used for blocking tasks (e.g. file system access) that affect UI or responsiveness of future user interactions. Do not use if an immediate response to a user interaction is expected. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. Examples: | ||
| 244 | + - Updating the UI to reflect progress on a long task. | ||
| 245 | + - Loading data that might be shown in the UI after a future user | ||
| 246 | + interaction. | ||
| 244 | 247 | * cef.TID_FILE_USER_BLOCKING: Used for blocking tasks (e.g. file system access) that affect UI immediately after a user interaction. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. Example: Generating data shown in the UI immediately after a click. | |
| 245 | - * cef.TID_PROCESS_LAUNCHER: Used to launch and terminate browser processes. | ||
| 246 | - * cef.TID_CACHE: Used to handle slow HTTP cache operations. | ||
| 247 | 248 | * cef.TID_IO: Used to process IPC and network messages. Do not perform blocking tasks on this thread. All tasks posted after CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() are guaranteed to run. | |
| 248 | 249 | ||
| 249 | 250 | List of threads in the Renderer process: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,6 +42,7 @@ Table of contents: | |||
| 42 | 42 | * [v66+ RequestHandler.OnBeforeBrowse has a new param 'user_gesture'](#v66-requesthandleronbeforebrowse-has-a-new-param-user_gesture) | |
| 43 | 43 | * [v66+ Window transparency changes](#v66-window-transparency-changes) | |
| 44 | 44 | * [v66+ BrowserSettings.javascript_open_windows_disallowed option was removed](#v66-browsersettingsjavascript_open_windows_disallowed-option-was-removed) | |
| 45 | + * [v66+ Threads removed: TID_DB, TID_PROCESS_LAUNCHER, TID_CACHE](#v66-threads-removed-tid_db-tid_process_launcher-tid_cache) | ||
| 45 | 46 | ||
| 46 | 47 | ||
| 47 | 48 | ||
@@ -351,3 +352,12 @@ only on Linux (got it working on Fedora with just a change in window setting). | |||
| 351 | 352 | The BrowserSettings.`javascript_open_windows_disallowed` option was removed | |
| 352 | 353 | (setting it will do nothing). | |
| 353 | 354 | ||
| 355 | + | ||
| 356 | + ## v66+ Threads removed: TID_DB, TID_PROCESS_LAUNCHER, TID_CACHE | ||
| 357 | + | ||
| 358 | + These threads and their corresponding constants in the cefpython module | ||
| 359 | + were removed: TID_DB, TID_PROCESS_LAUNCHER, TID_CACHE. | ||
| 360 | + | ||
| 361 | + New threads were added, see cefpython.[PostTask](../api/cefpython.md#posttask) | ||
| 362 | + description for a complete list of threads. | ||
| 363 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,10 +46,11 @@ internal/cef_types.h | |||
| 46 | 46 | - + cef_settings_t: | |
| 47 | 47 | - + javascript_open_windows option removed (keep a dummy for BC) | |
| 48 | 48 | - + update Migration Guide | |
| 49 | - - cef_thread_id_t: | ||
| 50 | - - TID_DB removed (update Migration Guide) | ||
| 51 | - - TID_PROCESS_LAUNCHER removed (update Migration Guide) | ||
| 52 | - - TID_CACHE removed (update Migration Guide) | ||
| 49 | + - + cef_thread_id_t: | ||
| 50 | + - + TID_DB removed (update Migration Guide) | ||
| 51 | + - + TID_PROCESS_LAUNCHER removed (update Migration Guide) | ||
| 52 | + - + TID_CACHE removed (update Migration Guide) | ||
| 53 | + - + Added threads: TID_FILE_BACKGROUND, TID_FILE_USER_VISIBLE | ||
| 53 | 54 | ||
| 54 | 55 | ||
| 55 | 56 | NEW FEATURES | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -122,11 +122,10 @@ cdef extern from "include/internal/cef_types.h": | |||
| 122 | 122 | ||
| 123 | 123 | ctypedef enum cef_thread_id_t: | |
| 124 | 124 | TID_UI, | |
| 125 | - TID_DB, | ||
| 125 | + TID_FILE_BACKGROUND | ||
| 126 | 126 | TID_FILE, | |
| 127 | + TID_FILE_USER_VISIBLE | ||
| 127 | 128 | TID_FILE_USER_BLOCKING, | |
| 128 | - TID_PROCESS_LAUNCHER, | ||
| 129 | - TID_CACHE, | ||
| 130 | 129 | TID_IO, | |
| 131 | 130 | TID_RENDERER | |
| 132 | 131 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ def PostTask(int thread, object func, *args): | |||
| 12 | 12 | ||
| 13 | 13 | # Validate threadId. | |
| 14 | 14 | if thread not in g_browserProcessThreads: | |
| 15 | - raise Exception("PoastTask failed: requires a browser process thread") | ||
| 15 | + raise Exception("PostTask failed: requires a browser process thread") | ||
| 16 | 16 | ||
| 17 | 17 | # Validate func. | |
| 18 | 18 | if not IsFunctionOrMethod(type(func)): | |
@@ -39,7 +39,7 @@ def PostDelayedTask(int thread, int delay_ms, object func, *args): | |||
| 39 | 39 | ||
| 40 | 40 | # Validate threadId. | |
| 41 | 41 | if thread not in g_browserProcessThreads: | |
| 42 | - raise Exception("PoastTask failed: requires a browser process thread") | ||
| 42 | + raise Exception("PostTask failed: requires a browser process thread") | ||
| 43 | 43 | ||
| 44 | 44 | # Validate func. | |
| 45 | 45 | if not IsFunctionOrMethod(type(func)): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,20 +8,19 @@ include "cefpython.pyx" | |||
| 8 | 8 | cimport cef_types | |
| 9 | 9 | ||
| 10 | 10 | TID_UI = cef_types.TID_UI | |
| 11 | - TID_DB = cef_types.TID_DB | ||
| 11 | + TID_FILE_BACKGROUND = cef_types.TID_FILE_BACKGROUND | ||
| 12 | 12 | TID_FILE = cef_types.TID_FILE | |
| 13 | + TID_FILE_USER_VISIBLE = cef_types.TID_FILE_USER_VISIBLE | ||
| 13 | 14 | TID_FILE_USER_BLOCKING = cef_types.TID_FILE_USER_BLOCKING | |
| 14 | - TID_PROCESS_LAUNCHER = cef_types.TID_PROCESS_LAUNCHER | ||
| 15 | - TID_CACHE = cef_types.TID_CACHE | ||
| 16 | 15 | TID_IO = cef_types.TID_IO | |
| 17 | 16 | TID_RENDERER = cef_types.TID_RENDERER | |
| 18 | 17 | ||
| 19 | 18 | g_browserProcessThreads = [ | |
| 20 | 19 | TID_UI, | |
| 21 | - TID_DB, | ||
| 20 | + TID_FILE_BACKGROUND, | ||
| 22 | 21 | TID_FILE, | |
| 22 | + TID_FILE_USER_VISIBLE | ||
| 23 | 23 | TID_FILE_USER_BLOCKING, | |
| 24 | - TID_CACHE, | ||
| 25 | 24 | TID_IO, | |
| 26 | 25 | ] | |
| 27 | 26 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments