/[resiprocate]/main/sip/resiprocate/external/HttpProvider.cxx
ViewVC logotype

Contents of /main/sip/resiprocate/external/HttpProvider.cxx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4601 - (show annotations) (download)
Thu May 12 01:10:49 2005 UTC (14 years, 6 months ago) by derek
File size: 564 byte(s)
merged identity branch(4598) into main--removing identity branch after this
1 #include "HttpProvider.hxx"
2 #include "resiprocate/os/Lock.hxx"
3
4 using namespace resip;
5
6 HttpProvider* HttpProvider::mInstance = 0;
7 HttpProviderFactory* HttpProvider::mFactory = 0;
8 Mutex HttpProvider::mMutex;
9
10 void
11 HttpProvider::setFactory(std::auto_ptr<HttpProviderFactory> fact)
12 {
13 mFactory = fact.release();
14 }
15
16 HttpProvider*
17 HttpProvider::instance()
18 {
19 if (mFactory && mInstance == 0)
20 {
21 Lock lock(mMutex);
22 if (mInstance == 0)
23 {
24 mInstance = mFactory->createHttpProvider();
25 }
26 }
27 return mInstance;
28 }
29
30
31

Properties

Name Value
svn:eol-style LF

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27