Bug 758096: don't use NS_INLINE_DECL_REFCOUNTING() for classes to be passed between threads. r=mwu

This commit is contained in:
Cervantes Yu 2012-05-24 17:09:05 +08:00
parent ddd21ace5a
commit bd6bfa30f7

View File

@ -199,10 +199,8 @@ class PollSensor {
nsCOMPtr<nsIRunnable> PollSensor::mRunnable = NULL;
class SwitchSensor {
class SwitchSensor : public RefCounted<SwitchSensor> {
public:
NS_INLINE_DECL_REFCOUNTING(SwitchSensor)
SwitchSensor(bool aActivate, sensor_t aSensor, pthread_t aThreadId) :
mActivate(aActivate), mSensor(aSensor), mThreadId(aThreadId) { }