OLD | NEW |
1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. | 1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. See the AUTHORS file for names of contributors. | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. |
4 | 4 |
5 #include <deque> | 5 #include <deque> |
6 #include <errno.h> | 6 #include <errno.h> |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 | 537 |
538 mu_.Release(); | 538 mu_.Release(); |
539 (*function)(arg); | 539 (*function)(arg); |
540 } | 540 } |
541 } | 541 } |
542 | 542 |
543 void ChromiumEnv::StartThread(void (*function)(void* arg), void* arg) { | 543 void ChromiumEnv::StartThread(void (*function)(void* arg), void* arg) { |
544 new Thread(function, arg); // Will self-delete. | 544 new Thread(function, arg); // Will self-delete. |
545 } | 545 } |
546 | 546 |
547 ::base::LazyInstance<ChromiumEnv, ::base::LeakyLazyInstanceTraits<ChromiumEnv> > | 547 ::base::LazyInstance<ChromiumEnv>::Leaky |
548 default_env = LAZY_INSTANCE_INITIALIZER; | 548 default_env = LAZY_INSTANCE_INITIALIZER; |
549 | 549 |
550 } | 550 } |
551 | 551 |
552 Env* Env::Default() { | 552 Env* Env::Default() { |
553 return default_env.Pointer(); | 553 return default_env.Pointer(); |
554 } | 554 } |
555 | 555 |
556 } | 556 } |
OLD | NEW |