diff options
Diffstat (limited to 'base/threading')
-rw-r--r-- | base/threading/non_thread_safe.h | 2 | ||||
-rw-r--r-- | base/threading/thread_checker_impl.h | 3 | ||||
-rw-r--r-- | base/threading/thread_collision_warner.h | 4 | ||||
-rw-r--r-- | base/threading/thread_local.h | 5 | ||||
-rw-r--r-- | base/threading/watchdog.h | 3 | ||||
-rw-r--r-- | base/threading/worker_pool.h | 5 |
6 files changed, 13 insertions, 9 deletions
diff --git a/base/threading/non_thread_safe.h b/base/threading/non_thread_safe.h index 83a2178..e4a1c07 100644 --- a/base/threading/non_thread_safe.h +++ b/base/threading/non_thread_safe.h @@ -45,7 +45,7 @@ class NonThreadSafeDoNothing { // In Release mode, CalledOnValidThread will always return true. // #ifndef NDEBUG -class BASE_API NonThreadSafe : public NonThreadSafeImpl { +class NonThreadSafe : public NonThreadSafeImpl { }; #else class NonThreadSafe : public NonThreadSafeDoNothing { diff --git a/base/threading/thread_checker_impl.h b/base/threading/thread_checker_impl.h index 6d41fdc..02ecebf 100644 --- a/base/threading/thread_checker_impl.h +++ b/base/threading/thread_checker_impl.h @@ -6,6 +6,7 @@ #define BASE_THREADING_THREAD_CHECKER_IMPL_H_ #pragma once +#include "base/base_api.h" #include "base/synchronization/lock.h" #include "base/threading/platform_thread.h" @@ -17,7 +18,7 @@ namespace base { // // Note: You should almost always use the ThreadChecker class to get the // right version for your build configuration. -class ThreadCheckerImpl { +class BASE_API ThreadCheckerImpl { public: ThreadCheckerImpl(); ~ThreadCheckerImpl(); diff --git a/base/threading/thread_collision_warner.h b/base/threading/thread_collision_warner.h index 38294a3..b26568d 100644 --- a/base/threading/thread_collision_warner.h +++ b/base/threading/thread_collision_warner.h @@ -131,12 +131,12 @@ namespace base { // AsserterBase is the interfaces and DCheckAsserter is the default asserter // used. During the unit tests is used another class that doesn't "DCHECK" // in case of collision (check thread_collision_warner_unittests.cc) -struct AsserterBase { +struct BASE_API AsserterBase { virtual ~AsserterBase() {} virtual void warn() = 0; }; -struct DCheckAsserter : public AsserterBase { +struct BASE_API DCheckAsserter : public AsserterBase { virtual ~DCheckAsserter() {} virtual void warn(); }; diff --git a/base/threading/thread_local.h b/base/threading/thread_local.h index 069543f..4bacf92 100644 --- a/base/threading/thread_local.h +++ b/base/threading/thread_local.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -49,6 +49,7 @@ #define BASE_THREADING_THREAD_LOCAL_H_ #pragma once +#include "base/base_api.h" #include "base/basictypes.h" #if defined(OS_POSIX) @@ -60,7 +61,7 @@ namespace base { namespace internal { // Helper functions that abstract the cross-platform APIs. Do not use directly. -struct ThreadLocalPlatform { +struct BASE_API ThreadLocalPlatform { #if defined(OS_WIN) typedef unsigned long SlotType; #elif defined(OS_POSIX) diff --git a/base/threading/watchdog.h b/base/threading/watchdog.h index 4af45dc..fafda43 100644 --- a/base/threading/watchdog.h +++ b/base/threading/watchdog.h @@ -21,6 +21,7 @@ #include <string> +#include "base/base_api.h" #include "base/synchronization/condition_variable.h" #include "base/synchronization/lock.h" #include "base/threading/platform_thread.h" @@ -28,7 +29,7 @@ namespace base { -class Watchdog { +class BASE_API Watchdog { public: // Constructor specifies how long the Watchdog will wait before alarming. Watchdog(const TimeDelta& duration, diff --git a/base/threading/worker_pool.h b/base/threading/worker_pool.h index 9a02acc..12b50b4 100644 --- a/base/threading/worker_pool.h +++ b/base/threading/worker_pool.h @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -6,6 +6,7 @@ #define BASE_THREADING_WORKER_POOL_H_ #pragma once +#include "base/base_api.h" #include "base/tracked.h" class Task; @@ -20,7 +21,7 @@ namespace base { // inside the pool must be extremely careful about other objects they access // (MessageLoops, Singletons, etc). During shutdown these object may no longer // exist. -class WorkerPool { +class BASE_API WorkerPool { public: // This function posts |task| to run on a worker thread. |task_is_slow| // should be used for tasks that will take a long time to execute. Returns |