⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Wt
All Projects
Wt
Overview
Activity
Roadmap
Issues
Wiki
Forums
Download (509 Bytes)
RE: Can new created thread emit signals to Wt thread usin...
» DataSource.h
ruliang ge
, 05/07/2010 06:46 AM
#ifndef __DATASOURCE_H__
#define __DATASOURCE_H__
#include
<boost/thread.hpp>
#include
<boost/lexical_cast.hpp>
#include
<Wt/WSignal>
class
DataSource
{
public:
static
DataSource
*
getInstance
();
void
Start
();
Wt
::
Signal
<
int
>&
sourceEvent
(){
return
sourceEvent_
;
}
private
:
DataSource
();
virtual
~
DataSource
(){};
static
DataSource
*
instance_
;
bool
ifStarted_
;
int
dataCounter_
;
Wt
::
Signal
<
int
>
sourceEvent_
;
boost
::
mutex
mutex_
;
void
sendEvent
(
int
arg_number
);
};
#endif
« Previous
1
2
3
4
Next »
(3-3/4)
Loading...