我的应用程序中有一个显示信息的类。
我必须通过 SOAP 从服务器获取这些信息。
这是我的课:
class InfoControl : public TGCompositeFrame {
private:
//char*, int....
bool bWorking;
public:
InfoControl(const TGWindow *p);
virtual ~InfoControl();
void SetEventRate(char* evnum);
void SetBufferRate(char* rate);
void SetSuccess(char *s);
void RequestInfo();
ClassDef(InfoControl,1) //useless : ROOT specific stuff
};
RequestInfo()
只要bWorking
是真的,我希望定期调用方法。我对pthread
解决方案感到满意,但不知道如何实施。也许更微不足道的事情是可能的?
提前感谢您的帮助,
eo。