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