Added an mRequestingThread member to nsConnectionInfo... This is a PRThread pointer to the thread which made the network request (ie. the UI thread, etc)... This information is necessary when marshelling information back to the requesting thread...
git-svn-id: svn://10.0.0.236/trunk@23686 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -44,6 +44,16 @@ nsConnectionInfo::nsConnectionInfo(nsIURL *aURL,
|
||||
{
|
||||
NS_INIT_REFCNT();
|
||||
|
||||
/*
|
||||
* Cache the thread which is making the network request. Any cross-thread
|
||||
* marshalling events will be sent to its event queue...
|
||||
*
|
||||
* XXX: Currently, this assumes that the nsConnectionInfo is *always*
|
||||
* created on the requesting thread... The requesting thread
|
||||
* should really be passed in via the public APIs...
|
||||
*/
|
||||
mRequestingThread = PR_GetCurrentThread();
|
||||
|
||||
mStatus = nsConnectionActive;
|
||||
pURL = aURL;
|
||||
pNetStream = aStream;
|
||||
|
||||
@@ -61,6 +61,7 @@ public:
|
||||
nsNetlibStream *pNetStream;
|
||||
nsIStreamListener *pConsumer;
|
||||
nsConnectionStatus mStatus;
|
||||
PRThread* mRequestingThread;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user