Jjbates@chromium.orgTrace PostTasks from post to run.
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Clear up threading git-svn-id: svn://svn.chromium.org/chrome/trunk/src@135163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
RefCounted types should not have public destructors, base/ edition BUG=123295 TEST=it compiles Review URL: https://chromiumcodereview.appspot.com/10332269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144130 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Enable base::NonThreadSafe when DCHECK_ALWAYS_ON is set Previously base::NonThreadSafe only looked at Debug builds. Also enable it for Release builds when DCHECK_ALWAYS_ON is set (eg: the try bots & waterfall bots) BUG=none TEST=existing Review URL: https://chromiumcodereview.appspot.com/10636044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144384 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Convert all remaining explicit LeakyLazyInstanceTraits users to ::Leaky and hide LeakyLazyInstanceTraits in base::internal to discourage cargo-culting new users. BUG=none TEST=none Review URL: http://codereview.chromium.org/9117038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119173 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Enable parts of base_untrusted that are used by remoting client 1. base64, rand_util, threading, time and threads were previosly disabled in base_untrusted. Remoting code depends on these parts of base, so they need to be enabled. 2. Implemented NaCl version of rand_util. 3. Enabled glibc version of base_untrusted BUG=134216 Review URL: https://chromiumcodereview.appspot.com/10795083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148641 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Revert 118118 - Temporarily revert 117127 for perf analysis. BUG=110555 TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/9252014 TBR=rsesek@chromium.org Review URL: https://chromiumcodereview.appspot.com/9250014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118152 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. The previous version of this patch was reverted due to crashing cros_x86 and cros_tegra2 builds. See: http://codereview.chromium.org/9703053/ BUG=108171 Review URL: https://chromiumcodereview.appspot.com/10572030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143401 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add WorkerPool::PostTaskAndReply and use in DHCP code. This factors out the PostTaskAndReply implementation out of MessageLoopProxy so that it can be used for any destination thread accessible via a PostTask-like interface, and uses that code from both MessageLoopProxy and WorkerPool. The DhcpProxyScriptFetcherWin and DhcpProxyScriptAdapterFetcher classes were both using a PostTaskAndReply-like mechanism with a WorkerPool thread, and on inspection it looks like there are several places in net/ where this is done, and this motivated the larger change (vs. patch set 1 which was a mechanical switch to base::Bind from NewRunnableMethod). BUG=97516 TEST=net_unittests Review URL: http://codereview.chromium.org/8139028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105512 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Trace PostTasks from post to run. To do this properly, we need a new type of trace event "FLOW" which will be drawn as lines in about:tracing from BEGIN to END. Also instruments SequencedWorkerPool and ChannelReader::DispatchInputData, which were not currently traced. BUG=79942 Review URL: https://codereview.chromium.org/10913242 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157288 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Ensure SequencedWorkerPool::Shutdown() blocks for already-started SKIP_ON_SHUTDOWN tasks SequencedWorkerPool tasks with explicit shutdown behaviours should have the following semantics: For tasks posted, but not started, before Shutdown is called: BLOCK_: MUST run SKIP_: MUST NOT run CONTINUE_: MUST NOT run For tasks started, but not completed, when Shutdown is called: BLOCK_: MUST block Shutdown SKIP_ MUST block Shutdown CONTINUE_: MUST NOT block Shutdown For tasks posted *AFTER* Shutdown is called, for all three cases, the new tasks MUST NOT be run. BUG=138120 TEST=base_unittests:SequencedWorkerPoolTest.SkipOnShutdown Review URL: https://chromiumcodereview.appspot.com/10807045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147776 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Ensure SequencedWorkerPool::Shutdown() blocks for already-started SKIP_ON_SHUTDOWN tasks SequencedWorkerPool tasks with explicit shutdown behaviours should have the following semantics: For tasks posted, but not started, before Shutdown is called: BLOCK_: MUST run SKIP_: MUST NOT run CONTINUE_: MUST NOT run For tasks started, but not completed, when Shutdown is called: BLOCK_: MUST block Shutdown SKIP_ MUST block Shutdown CONTINUE_: MUST NOT block Shutdown For tasks posted *AFTER* Shutdown is called, for all three cases, the new tasks MUST NOT be run. BUG=138120 TEST=base_unittests:SequencedWorkerPoolTest.SkipOnShutdown Review URL: https://chromiumcodereview.appspot.com/10807045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147776 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Disallow UI/IO thread blocking on any other thread. By design, there's no ScopedAllowWait that is reachable by all code. From experience with ScopedAllowIO, it will be abused. So instead the existing callers (which should all be fixed other than two) are friends with ThreadRestrictions. Review URL: https://chromiumcodereview.appspot.com/10151009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134114 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Base: Fix a race settin the running_ flag. BUG=127931 TEST=green bots TBR=jhawkins, willchan Review URL: https://chromiumcodereview.appspot.com/10392188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@138143 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Modify ThreadChecker and NonThreadSafe so that their functionality is available in release builds if explicitly requested by using their Impl types. The default usage remains that they do nothing in release mode. Also, update unit tests to run in release mode, verifying that the release versions of NonThreadSafe and ThreadChecker do nothing in release builds. BUG=none TEST=base unit tests Review URL: http://codereview.chromium.org/6599004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76833 0039d316-1c4b-4281-b951-d872f2087c98 | 15 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Don't rely on undefined macro behaviour in unit tests. Ensure that the macros properly adhere to C++03 16.1.4's requirements for evaluation. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10673010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144361 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Move base/thread.h to base/threading, fix up callers to use the new location. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/6028009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70345 0039d316-1c4b-4281-b951-d872f2087c98 | 15 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Replace most LOG/CHECK statements with DLOG/DCHECK statements in base. [ Reland of 107042 http://codereview.chromium.org/8368009 ] I tried hard not to change CHECKs that had side effects. I kept fatal checks that seemed security or debugging-info (in crash reports) sensitive, and ones that seems particularly well-conceived. Review URL: http://codereview.chromium.org/8341026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107434 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Make it possible to use ThreadLocalStorage::Slot as a static without introducing static initializers. Member variables can stay TLS::Slots and their behavior doesn't change. Static instances use TLS::StaticSlot instead. Kind of like http://codereview.chromium.org/8491043 but for TLS. BUG=none TEST=none TBR=agl Review URL: https://chromiumcodereview.appspot.com/9297010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119679 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Cleanup thread_local_storage on Windows Remove statics that are windows only from the header file, and relocated them the windows only file. FIx up a few names to make things a bit more readable. r=rvargas Review URL: https://chromiumcodereview.appspot.com/8890003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142511 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Revert log change to thread_local_win to fix an internal compiler error when doing official Chrome builds. TBR=1aforge Review URL: http://codereview.chromium.org/8424004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107910 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Fix thread_restrictions ifdef Review URL: https://chromiumcodereview.appspot.com/10675002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144288 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add WebView implementation for CookieManager. Additional details of the requirements can be found from the Android SDK. http://developer.android.com/reference/android/webkit/CookieManager.html BUG= TEST=make forwarder android_webview_apk android_webview_test_apk Review URL: https://chromiumcodereview.appspot.com/10913074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155331 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Add a convenience typedef LazyInstance<T>::Leaky to avoid repeating T. Converted the first 20 or so hits for LeakyLazyInstanceTraits on codesearch to demonstrate the benefit at callsites. The real change is base/lazy_instance.h; everything else is example. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9192024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118754 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Remove old Sleep and PostDelayedTask interfaces that use int ms instead of TimeDelta. The previous version of this patch was reverted due to crashing cros_x86 and cros_tegra2 builds. See: http://codereview.chromium.org/9703053/ BUG=108171 Review URL: https://chromiumcodereview.appspot.com/10572030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143401 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Increase worker thread stack size for AddressSanitizer. This is especially required for debug builds, since ASAN uses a lot more stack and otherwise causes it to crash. BUG=136189 Review URL: https://chromiumcodereview.appspot.com/10702116 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145627 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Remove the rest of #pragma once in one big CL. For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add virtual and OVERRIDE to base/ implementation files BUG=none TEST=compiles Review URL: http://codereview.chromium.org/10004001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131098 0039d316-1c4b-4281-b951-d872f2087c98 | 14 年前 | |
Give the post-and-reply worker pool test a chance to finish on iOS Since some iOS devices are single-core, a busy loop on one thread can starve the thread that the test is waiting for to finish. BUG=None TEST=None Review URL: https://chromiumcodereview.appspot.com/10810061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148087 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 | |
Add TaskRunner wrapper for WorkerPool. BUG=114329 TEST=none Review URL: http://codereview.chromium.org/10220001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133855 0039d316-1c4b-4281-b951-d872f2087c98 | 13 年前 |