由买买提看人间百态

topics

全部话题 - 话题: priceserv
(共0页)
n********y
发帖数: 48
1
来自主题: Programming版 - multithread: how to lock a thread
程序的基本结构如下所示,
class priceserv{
public:
priceserv(){
}
virtual ~priceserv(){
}
int run()
{
// connect to the price server
// waiting for the price events, and call the corresponding
callback function.
}
//callback function
bool on_quote(char *data)
{
//printf data
}
bool on_trade(char *data)
{
//printf data
}
bool on_depth(c... 阅读全帖
(共0页)