summaryrefslogtreecommitdiff
path: root/source/api_wrappers/linux/CWaitableObjectCollection.h
blob: f5edfa77eeecb6d477d8558e0e7175a6ba1a0082 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*******************************************************************************
 * Copyright (C) ST-Ericsson SA 2011
 * License terms: 3-clause BSD license
 ******************************************************************************/

#ifndef _CWAITABLEOBJECTCOLLECTION_H
#define _CWAITABLEOBJECTCOLLECTION_H

#include <vector>
#include "CWaitableObject.h"

using namespace std;

class CWaitableObjectCollection
{
public:
    CWaitableObjectCollection();
    virtual ~CWaitableObjectCollection();
    void Add(CWaitableObject *obj);
    CWaitableObject *Wait(DWORD dwTimeout = INFINITE);
private:
    vector<CWaitableObject *>m_objs;
};

#endif /* _CWAITABLEOBJECTCOLLECTION_H */