зеркало из https://github.com/mozilla/gecko-dev.git
Bug 758096: don't use NS_INLINE_DECL_REFCOUNTING() for classes to be passed between threads. r=mwu
This commit is contained in:
Родитель
f7f091cba7
Коммит
32df83d69b
|
@ -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) { }
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче