Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
components
devices
manager
test
sbDeviceEventTesterStressThreads.h
Go to the documentation of this file.
1
/* vim: set sw=2 :miv */
2
/*
3
//
4
// BEGIN SONGBIRD GPL
5
//
6
// This file is part of the Songbird web player.
7
//
8
// Copyright(c) 2005-2008 POTI, Inc.
9
// http://songbirdnest.com
10
//
11
// This file may be licensed under the terms of of the
12
// GNU General Public License Version 2 (the "GPL").
13
//
14
// Software distributed under the License is distributed
15
// on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
16
// express or implied. See the GPL for the specific language
17
// governing rights and limitations.
18
//
19
// You should have received a copy of the GPL along with this
20
// program. If not, go to http://www.gnu.org/licenses/gpl.html
21
// or write to the Free Software Foundation, Inc.,
22
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
//
24
// END SONGBIRD GPL
25
//
26
*/
27
28
#include <nsIRunnable.h>
29
#include "sbIDeviceEventListener.h"
30
31
#include <prmon.h>
32
#include <nsCOMArray.h>
33
#include <nsIThread.h>
34
35
/*
36
* event listener stress testing class
37
*/
38
39
class
sbDeviceEventTesterStressThreads
:
public
nsIRunnable,
40
public
sbIDeviceEventListener
41
{
42
public
:
43
NS_DECL_ISUPPORTS
44
NS_DECL_NSIRUNNABLE
45
NS_DECL_SBIDEVICEEVENTLISTENER
46
47
sbDeviceEventTesterStressThreads
();
48
49
private
:
50
~sbDeviceEventTesterStressThreads();
51
void
OnEvent();
52
53
protected
:
54
PRMonitor*
mMonitor
;
55
PRInt32
mCounter
;
56
nsCOMArray<nsIThread>
mThreads
;
57
};
sbDeviceEventTesterStressThreads::mMonitor
PRMonitor * mMonitor
Definition:
sbDeviceEventTesterStressThreads.h:54
sbDeviceEventTesterStressThreads::mCounter
PRInt32 mCounter
Definition:
sbDeviceEventTesterStressThreads.h:55
sbDeviceEventTesterStressThreads
Definition:
sbDeviceEventTesterStressThreads.h:39
sbDeviceEventTesterStressThreads::sbDeviceEventTesterStressThreads
NS_DECL_ISUPPORTS NS_DECL_NSIRUNNABLE NS_DECL_SBIDEVICEEVENTLISTENER sbDeviceEventTesterStressThreads()
NS_DECL_ISUPPORTS
NS_DECL_ISUPPORTS
Definition:
sbPlaylistCommandsHelper.cpp:49
sbDeviceEventTesterStressThreads::mThreads
nsCOMArray< nsIThread > mThreads
Definition:
sbDeviceEventTesterStressThreads.h:56
sbIDeviceEventListener
Definition:
sbIDeviceEventListener.idl:40