summaryrefslogtreecommitdiffstats
path: root/base/threading
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 15:34:00 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-05 15:34:00 +0000
commit0bea7254836d17e3f1e278cbd52e8b8816c49a48 (patch)
treeeb16c01ad0143fad583cd60a87828fd90c94f61a /base/threading
parent93f3edc8adc1db9e3d1deebde0ec58d15b7e1a91 (diff)
downloadchromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.zip
chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.gz
chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.bz2
Rename BASE_API to BASE_EXPORT.
R=rvargas Review URL: http://codereview.chromium.org/7461141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/threading')
-rw-r--r--base/threading/non_thread_safe_impl.h4
-rw-r--r--base/threading/platform_thread.h6
-rw-r--r--base/threading/simple_thread.h12
-rw-r--r--base/threading/thread.h4
-rw-r--r--base/threading/thread_checker_impl.h4
-rw-r--r--base/threading/thread_collision_warner.h14
-rw-r--r--base/threading/thread_local.h4
-rw-r--r--base/threading/thread_local_storage.h6
-rw-r--r--base/threading/thread_restrictions.h8
-rw-r--r--base/threading/watchdog.h4
-rw-r--r--base/threading/worker_pool.h4
-rw-r--r--base/threading/worker_pool_posix.h2
12 files changed, 36 insertions, 36 deletions
diff --git a/base/threading/non_thread_safe_impl.h b/base/threading/non_thread_safe_impl.h
index ab0999a..4a70e34 100644
--- a/base/threading/non_thread_safe_impl.h
+++ b/base/threading/non_thread_safe_impl.h
@@ -6,7 +6,7 @@
#define BASE_THREADING_NON_THREAD_SAFE_IMPL_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/threading/thread_checker_impl.h"
namespace base {
@@ -17,7 +17,7 @@ namespace base {
//
// Note: You should almost always use the NonThreadSafe class to get
// the right version of the class for your build configuration.
-class BASE_API NonThreadSafeImpl {
+class BASE_EXPORT NonThreadSafeImpl {
public:
~NonThreadSafeImpl();
diff --git a/base/threading/platform_thread.h b/base/threading/platform_thread.h
index 230d209..4703b96 100644
--- a/base/threading/platform_thread.h
+++ b/base/threading/platform_thread.h
@@ -10,7 +10,7 @@
#define BASE_THREADING_PLATFORM_THREAD_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/basictypes.h"
#include "build/build_config.h"
@@ -55,11 +55,11 @@ enum ThreadPriority{
};
// A namespace for low-level thread functions.
-class BASE_API PlatformThread {
+class BASE_EXPORT PlatformThread {
public:
// Implement this interface to run code on a background thread. Your
// ThreadMain method will be called on the newly created thread.
- class BASE_API Delegate {
+ class BASE_EXPORT Delegate {
public:
virtual ~Delegate() {}
virtual void ThreadMain() = 0;
diff --git a/base/threading/simple_thread.h b/base/threading/simple_thread.h
index 5d8c458..ae36f26 100644
--- a/base/threading/simple_thread.h
+++ b/base/threading/simple_thread.h
@@ -45,7 +45,7 @@
#include <queue>
#include <vector>
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/basictypes.h"
#include "base/threading/platform_thread.h"
#include "base/synchronization/lock.h"
@@ -55,9 +55,9 @@ namespace base {
// This is the base SimpleThread. You can derive from it and implement the
// virtual Run method, or you can use the DelegateSimpleThread interface.
-class BASE_API SimpleThread : public PlatformThread::Delegate {
+class BASE_EXPORT SimpleThread : public PlatformThread::Delegate {
public:
- class BASE_API Options {
+ class BASE_EXPORT Options {
public:
Options() : stack_size_(0) { }
~Options() { }
@@ -120,9 +120,9 @@ class BASE_API SimpleThread : public PlatformThread::Delegate {
bool joined_; // True if Join has been called.
};
-class BASE_API DelegateSimpleThread : public SimpleThread {
+class BASE_EXPORT DelegateSimpleThread : public SimpleThread {
public:
- class BASE_API Delegate {
+ class BASE_EXPORT Delegate {
public:
Delegate() { }
virtual ~Delegate() { }
@@ -150,7 +150,7 @@ class BASE_API DelegateSimpleThread : public SimpleThread {
// JoinAll() will make sure that all outstanding work is processed, and wait
// for everything to finish. You can reuse a pool, so you can call Start()
// again after you've called JoinAll().
-class BASE_API DelegateSimpleThreadPool
+class BASE_EXPORT DelegateSimpleThreadPool
: public DelegateSimpleThread::Delegate {
public:
typedef DelegateSimpleThread::Delegate Delegate;
diff --git a/base/threading/thread.h b/base/threading/thread.h
index 9a181c0..58a4cc2 100644
--- a/base/threading/thread.h
+++ b/base/threading/thread.h
@@ -8,7 +8,7 @@
#include <string>
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
#include "base/threading/platform_thread.h"
@@ -26,7 +26,7 @@ namespace base {
// (1) Thread::CleanUp()
// (2) MessageLoop::~MessageLoop
// (3.b) MessageLoop::DestructionObserver::WillDestroyCurrentMessageLoop
-class BASE_API Thread : PlatformThread::Delegate {
+class BASE_EXPORT Thread : PlatformThread::Delegate {
public:
struct Options {
Options() : message_loop_type(MessageLoop::TYPE_DEFAULT), stack_size(0) {}
diff --git a/base/threading/thread_checker_impl.h b/base/threading/thread_checker_impl.h
index 02ecebf..4295560 100644
--- a/base/threading/thread_checker_impl.h
+++ b/base/threading/thread_checker_impl.h
@@ -6,7 +6,7 @@
#define BASE_THREADING_THREAD_CHECKER_IMPL_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
@@ -18,7 +18,7 @@ namespace base {
//
// Note: You should almost always use the ThreadChecker class to get the
// right version for your build configuration.
-class BASE_API ThreadCheckerImpl {
+class BASE_EXPORT ThreadCheckerImpl {
public:
ThreadCheckerImpl();
~ThreadCheckerImpl();
diff --git a/base/threading/thread_collision_warner.h b/base/threading/thread_collision_warner.h
index b26568d..4460602 100644
--- a/base/threading/thread_collision_warner.h
+++ b/base/threading/thread_collision_warner.h
@@ -8,7 +8,7 @@
#include <memory>
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/atomicops.h"
// A helper class alongside macros to be used to verify assumptions about thread
@@ -131,17 +131,17 @@ 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 BASE_API AsserterBase {
+struct BASE_EXPORT AsserterBase {
virtual ~AsserterBase() {}
virtual void warn() = 0;
};
-struct BASE_API DCheckAsserter : public AsserterBase {
+struct BASE_EXPORT DCheckAsserter : public AsserterBase {
virtual ~DCheckAsserter() {}
virtual void warn();
};
-class BASE_API ThreadCollisionWarner {
+class BASE_EXPORT ThreadCollisionWarner {
public:
// The parameter asserter is there only for test purpose
ThreadCollisionWarner(AsserterBase* asserter = new DCheckAsserter())
@@ -158,7 +158,7 @@ class BASE_API ThreadCollisionWarner {
// it doesn't leave the critical section, as opposed to ScopedCheck,
// because the critical section being pinned is allowed to be used only
// from one thread
- class BASE_API Check {
+ class BASE_EXPORT Check {
public:
explicit Check(ThreadCollisionWarner* warner)
: warner_(warner) {
@@ -175,7 +175,7 @@ class BASE_API ThreadCollisionWarner {
// This class is meant to be used through the macro
// DFAKE_SCOPED_LOCK
- class BASE_API ScopedCheck {
+ class BASE_EXPORT ScopedCheck {
public:
explicit ScopedCheck(ThreadCollisionWarner* warner)
: warner_(warner) {
@@ -194,7 +194,7 @@ class BASE_API ThreadCollisionWarner {
// This class is meant to be used through the macro
// DFAKE_SCOPED_RECURSIVE_LOCK
- class BASE_API ScopedRecursiveCheck {
+ class BASE_EXPORT ScopedRecursiveCheck {
public:
explicit ScopedRecursiveCheck(ThreadCollisionWarner* warner)
: warner_(warner) {
diff --git a/base/threading/thread_local.h b/base/threading/thread_local.h
index 4bacf92..3cdcb94 100644
--- a/base/threading/thread_local.h
+++ b/base/threading/thread_local.h
@@ -49,7 +49,7 @@
#define BASE_THREADING_THREAD_LOCAL_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/basictypes.h"
#if defined(OS_POSIX)
@@ -61,7 +61,7 @@ namespace base {
namespace internal {
// Helper functions that abstract the cross-platform APIs. Do not use directly.
-struct BASE_API ThreadLocalPlatform {
+struct BASE_EXPORT ThreadLocalPlatform {
#if defined(OS_WIN)
typedef unsigned long SlotType;
#elif defined(OS_POSIX)
diff --git a/base/threading/thread_local_storage.h b/base/threading/thread_local_storage.h
index f882729..cfac633 100644
--- a/base/threading/thread_local_storage.h
+++ b/base/threading/thread_local_storage.h
@@ -6,7 +6,7 @@
#define BASE_THREADING_THREAD_LOCAL_STORAGE_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/basictypes.h"
#if defined(OS_POSIX)
@@ -17,7 +17,7 @@ namespace base {
// Wrapper for thread local storage. This class doesn't do much except provide
// an API for portability.
-class BASE_API ThreadLocalStorage {
+class BASE_EXPORT ThreadLocalStorage {
public:
// Prototype for the TLS destructor function, which can be optionally used to
@@ -26,7 +26,7 @@ class BASE_API ThreadLocalStorage {
typedef void (*TLSDestructorFunc)(void* value);
// A key representing one value stored in TLS.
- class BASE_API Slot {
+ class BASE_EXPORT Slot {
public:
explicit Slot(TLSDestructorFunc destructor = NULL);
diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h
index 98e0422..fc8ab4b 100644
--- a/base/threading/thread_restrictions.h
+++ b/base/threading/thread_restrictions.h
@@ -5,7 +5,7 @@
#ifndef BASE_THREADING_THREAD_RESTRICTIONS_H_
#define BASE_THREADING_THREAD_RESTRICTIONS_H_
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/basictypes.h"
namespace base {
@@ -36,11 +36,11 @@ namespace base {
// only calls other functions in Chrome and not fopen(), you should go
// add the AssertIOAllowed checks in the helper functions.
-class BASE_API ThreadRestrictions {
+class BASE_EXPORT ThreadRestrictions {
public:
// Constructing a ScopedAllowIO temporarily allows IO for the current
// thread. Doing this is almost certainly always incorrect.
- class BASE_API ScopedAllowIO {
+ class BASE_EXPORT ScopedAllowIO {
public:
ScopedAllowIO() { previous_value_ = SetIOAllowed(true); }
~ScopedAllowIO() { SetIOAllowed(previous_value_); }
@@ -53,7 +53,7 @@ class BASE_API ThreadRestrictions {
// Constructing a ScopedAllowSingleton temporarily allows accessing for the
// current thread. Doing this is almost always incorrect.
- class BASE_API ScopedAllowSingleton {
+ class BASE_EXPORT ScopedAllowSingleton {
public:
ScopedAllowSingleton() { previous_value_ = SetSingletonAllowed(true); }
~ScopedAllowSingleton() { SetSingletonAllowed(previous_value_); }
diff --git a/base/threading/watchdog.h b/base/threading/watchdog.h
index fafda43..7991c30 100644
--- a/base/threading/watchdog.h
+++ b/base/threading/watchdog.h
@@ -21,7 +21,7 @@
#include <string>
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/synchronization/condition_variable.h"
#include "base/synchronization/lock.h"
#include "base/threading/platform_thread.h"
@@ -29,7 +29,7 @@
namespace base {
-class BASE_API Watchdog {
+class BASE_EXPORT 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 58471b5..384dcd1 100644
--- a/base/threading/worker_pool.h
+++ b/base/threading/worker_pool.h
@@ -6,7 +6,7 @@
#define BASE_THREADING_WORKER_POOL_H_
#pragma once
-#include "base/base_api.h"
+#include "base/base_export.h"
#include "base/callback.h"
#include "base/tracked.h"
@@ -22,7 +22,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 BASE_API WorkerPool {
+class BASE_EXPORT 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
diff --git a/base/threading/worker_pool_posix.h b/base/threading/worker_pool_posix.h
index bf75c78..b1930e6 100644
--- a/base/threading/worker_pool_posix.h
+++ b/base/threading/worker_pool_posix.h
@@ -41,7 +41,7 @@ class Task;
namespace base {
-class BASE_API PosixDynamicThreadPool
+class BASE_EXPORT PosixDynamicThreadPool
: public RefCountedThreadSafe<PosixDynamicThreadPool> {
public:
class PosixDynamicThreadPoolPeer;