Tuesday, September 28, 2010

Thread contact mechanism



The main thread to create a package in the activities of the Vice-thread object class, smoothly written, 141 421.

/ / MyActive.h
class CMyActive: public CActive
(
public:
void DownloadL (const TDesC & aUrl); / /

protected:
void DoCancel ();
void RunL ();
private:
static TInt ThreadFunction (TAny * aArg);

private:
RThread iThread;
);

/ / MyActive.cpp
void CMyActive: DownloadL (const TDesC & aUrl)
(
/ / Create thread
iThread.Logon (iStatus); / / request to notify the Vice-thread exit the main thread.
SetActive ();
/ / ...
)

void CMyActive:: RunL ()
(
if (iStatus.Int () == KErrNone)
(
/ / Associate thread has been the normal exit
)
)

TInt CMyActive:: ThreadFunction (TAny * aArg)
(
/ / Download
)







Recommended links:



Backup And Restore Expert



AVI to 3GP



adobe at the end of Acquiring, at a price well



C # DRAG and drop source Xiangjie 1



Brief Kids Education



Rotating gallery with Flash MX Production



"Dream Zhu Xian," Common Sense To Make Money: What Equipment The Most Valuable?



ASF TO MPG



Servlet's Context and Config



Photoshop Material Series: The Fog



Shanghai University Graduates Overall Employment Rate Of 07 97.25%



Microsoft visual studio



WMV to MPEG



Money crowd and Chow's relay



Infomation Languages Education



No comments:

Post a Comment