Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: third_party/sqlite/BUILD.gn

Issue 827523004: [sql] Enable HAVE_USLEEP for more platforms. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to trunk Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sql/sqlite_features_unittest.cc ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/BUILD.gn
diff --git a/third_party/sqlite/BUILD.gn b/third_party/sqlite/BUILD.gn
index 3d994d2053d70526240256ae413537542cd30064..f4c9a44912fdd05ed6b2ff151a709d4cca8289b4 100644
--- a/third_party/sqlite/BUILD.gn
+++ b/third_party/sqlite/BUILD.gn
@@ -45,6 +45,15 @@ source_set("sqlite") {
"SQLITE_NO_SYNC",
]
}
+ if (is_posix) {
+ defines += [
+ # Allow xSleep() call on Unix to use usleep() rather than sleep(), so it
+ # will have microsecond precision. Should only affect contended databases
+ # via the busy callback. Browser profile databases are mostly exclusive,
+ # but renderer databases may allow for contention.
+ "HAVE_USLEEP=1",
+ ]
+ }
include_dirs = [
"amalgamation",
@@ -69,7 +78,6 @@ source_set("sqlite") {
libs = [ "CoreFoundation.framework" ]
} else if (is_android) {
defines += [
- "HAVE_USLEEP=1",
"SQLITE_DEFAULT_JOURNAL_SIZE_LIMIT=1048576",
"SQLITE_DEFAULT_AUTOVACUUM=1",
"SQLITE_TEMP_STORE=3",
« no previous file with comments | « sql/sqlite_features_unittest.cc ('k') | third_party/sqlite/sqlite.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698