Bug 715162: Move LazyIdleThread to xpcom/. r=bent

--HG--
rename : dom/indexedDB/LazyIdleThread.cpp => xpcom/threads/LazyIdleThread.cpp
rename : dom/indexedDB/LazyIdleThread.h => xpcom/threads/LazyIdleThread.h
This commit is contained in:
Kyle Huey 2012-01-05 08:42:47 -05:00
parent 029e7ef276
commit c0ec2bddbd
7 changed files with 15 additions and 14 deletions

View File

@ -57,7 +57,6 @@
#include "IDBTransaction.h"
#include "IDBFactory.h"
#include "IndexedDatabaseManager.h"
#include "LazyIdleThread.h"
#include "TransactionThreadPool.h"
#include "DictionaryHelpers.h"

View File

@ -69,7 +69,6 @@
#include "IDBKeyRange.h"
#include "IndexedDatabaseManager.h"
#include "Key.h"
#include "LazyIdleThread.h"
#include "nsIScriptSecurityManager.h"
using namespace mozilla;

View File

@ -49,6 +49,7 @@
#include "nsISimpleEnumerator.h"
#include "nsITimer.h"
#include "mozilla/LazyIdleThread.h"
#include "mozilla/Preferences.h"
#include "mozilla/Services.h"
#include "mozilla/storage.h"
@ -65,7 +66,6 @@
#include "IDBEvents.h"
#include "IDBFactory.h"
#include "IDBKeyRange.h"
#include "LazyIdleThread.h"
#include "OpenDatabaseHelper.h"
#include "TransactionThreadPool.h"

View File

@ -68,7 +68,6 @@ CPPSRCS = \
IDBTransaction.cpp \
IDBFactory.cpp \
IndexedDatabaseManager.cpp \
LazyIdleThread.cpp \
OpenDatabaseHelper.cpp \
TransactionThreadPool.cpp \
Key.cpp \
@ -87,7 +86,6 @@ EXPORTS_mozilla/dom/indexedDB = \
IndexedDatabaseManager.h \
IDBFactory.h \
Key.h \
LazyIdleThread.h \
FileManager.h \
FileInfo.h \
$(NULL)

View File

@ -60,9 +60,7 @@
#define ASSERT_OWNING_THREAD() /* nothing */
#endif
USING_INDEXEDDB_NAMESPACE
using mozilla::MutexAutoLock;
namespace mozilla {
LazyIdleThread::LazyIdleThread(PRUint32 aIdleTimeoutMS,
ShutdownMethod aShutdownMethod,
@ -558,3 +556,5 @@ LazyIdleThread::Observe(nsISupports* /* aSubject */,
Shutdown();
return NS_OK;
}
} // namespace mozilla

View File

@ -37,20 +37,23 @@
*
* ***** END LICENSE BLOCK ***** */
#ifndef mozilla_dom_indexeddb_lazyidlethread_h__
#define mozilla_dom_indexeddb_lazyidlethread_h__
#ifndef mozilla_lazyidlethread_h__
#define mozilla_lazyidlethread_h__
#include "mozilla/dom/indexedDB/IndexedDatabase.h"
#ifndef MOZILLA_INTERNAL_API
#error "This header is only usable from within libxul (MOZILLA_INTERNAL_API)."
#endif
#include "nsIObserver.h"
#include "nsIThreadInternal.h"
#include "nsITimer.h"
#include "mozilla/Mutex.h"
#include "nsCOMPtr.h"
#define IDLE_THREAD_TOPIC "thread-shutting-down"
BEGIN_INDEXEDDB_NAMESPACE
namespace mozilla {
/**
* This class provides a basic event target that creates its thread lazily and
@ -236,6 +239,6 @@ private:
bool mIdleTimeoutEnabled;
};
END_INDEXEDDB_NAMESPACE
} // namespace mozilla
#endif // mozilla_dom_indexeddb_lazyidlethread_h__
#endif // mozilla_lazyidlethread_h__

View File

@ -61,6 +61,7 @@ CPPSRCS = \
nsTimerImpl.cpp \
TimerThread.cpp \
HangMonitor.cpp \
LazyIdleThread.cpp \
$(NULL)
EXPORTS = \
@ -72,6 +73,7 @@ EXPORTS = \
EXPORTS_mozilla = \
HangMonitor.h \
LazyIdleThread.h \
$(NULL)
XPIDLSRCS = \