Changeset 48279 in vbox
- Timestamp:
- Sep 4, 2013 6:01:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/vboxweb.cpp
r46651 r48279 451 451 * @param s Socket from soap_accept() which has work to do. 452 452 */ 453 uint32_t add(ints)454 { 455 uint32_t cItems;453 size_t add(SOCKET s) 454 { 455 size_t cItems; 456 456 util::AutoWriteLock qlock(m_mutex COMMA_LOCKVAL_SRC_POS); 457 457 … … 493 493 * @return 494 494 */ 495 intget(size_t &cIdleThreads, size_t &cThreads)495 SOCKET get(size_t &cIdleThreads, size_t &cThreads) 496 496 { 497 497 while (1) … … 503 503 if (m_llSocketsQ.size()) 504 504 { 505 intsocket = m_llSocketsQ.front();505 SOCKET socket = m_llSocketsQ.front(); 506 506 m_llSocketsQ.pop_front(); 507 507 cIdleThreads = --m_cIdleThreads; … … 543 543 // A std::list abused as a queue; this contains the actual jobs to do, 544 544 // each int being a socket from soap_accept() 545 std::list< int>m_llSocketsQ;545 std::list<SOCKET> m_llSocketsQ; 546 546 }; 547 547 … … 732 732 static unsigned long CRYPTO_id_function() 733 733 { 734 return RTThreadNativeSelf();734 return (unsigned long)RTThreadNativeSelf(); 735 735 } 736 736 … … 856 856 // avoid EADDRINUSE on bind() 857 857 858 intm, s; // master and slave sockets858 SOCKET m, s; // master and slave sockets 859 859 m = soap_bind(&soap, 860 860 g_pcszBindToHost ? g_pcszBindToHost : "localhost", // safe default host
Note:
See TracChangeset
for help on using the changeset viewer.