[Common-cvs] netio win32.pcf, NONE, 1.1 wince-420.pcf, NONE, 1.1 thrdconn.cpp, 1.11, 1.12

[Common-cvs] netio win32.pcf, NONE, 1.1 wince-420.pcf, NONE, 1.1 thrdconn.cpp, 1.11, 1.12

rishimathew at helixcommunity.org rishimathew at helixcommunity.org
Wed Apr 21 16:25:36 PDT 2004


Update of /cvsroot/common/netio
In directory cvs-new:/tmp/cvs-serv10588

Modified Files:
	thrdconn.cpp 
Added Files:
	win32.pcf wince-420.pcf 
Log Message:
Adding support for Wince4.2 on X86


--- NEW FILE: win32.pcf ---
# 
# ***** BEGIN LICENSE BLOCK ***** 
# Version: RCSL 1.0/RPSL 1.0 
#  
# Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
#      
# The contents of this file, and the files included with this file, are 
# subject to the current version of the RealNetworks Public Source License 
# Version 1.0 (the "RPSL") available at 
# http://www.helixcommunity.org/content/rpsl unless you have licensed 
# the file under the RealNetworks Community Source License Version 1.0 
# (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
# in which case the RCSL will apply. You may also obtain the license terms 
# directly from RealNetworks.  You may not use this file except in 
# compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
# applicable to this file, the RCSL.  Please see the applicable RPSL or 
# RCSL for the rights, obligations and limitations governing use of the 
# contents of the file.  
#  
# This file is part of the Helix DNA Technology. RealNetworks is the 
# developer of the Original Code and owns the copyrights in the portions 
# it created. 
#  
# This file, and the files included with this file, is distributed and made 
# available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
# EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
# FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
# 
# Technology Compatibility Kit Test Suite(s) Location: 
#    http://www.helixcommunity.org/content/tck 
# 
# Contributor(s): 
#  
# ***** END LICENSE BLOCK ***** 
# 

# No low heap streaming otherwise http stream gets downloaded entirely
#project.RemoveDefines('HELIX_FEATURE_MIN_HEAP')

--- NEW FILE: wince-420.pcf ---
# 
# ***** BEGIN LICENSE BLOCK ***** 
# Version: RCSL 1.0/RPSL 1.0 
#  
# Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. 
#      
# The contents of this file, and the files included with this file, are 
# subject to the current version of the RealNetworks Public Source License 
# Version 1.0 (the "RPSL") available at 
# http://www.helixcommunity.org/content/rpsl unless you have licensed 
# the file under the RealNetworks Community Source License Version 1.0 
# (the "RCSL") available at http://www.helixcommunity.org/content/rcsl, 
# in which case the RCSL will apply. You may also obtain the license terms 
# directly from RealNetworks.  You may not use this file except in 
# compliance with the RPSL or, if you have a valid RCSL with RealNetworks 
# applicable to this file, the RCSL.  Please see the applicable RPSL or 
# RCSL for the rights, obligations and limitations governing use of the 
# contents of the file.  
#  
# This file is part of the Helix DNA Technology. RealNetworks is the 
# developer of the Original Code and owns the copyrights in the portions 
# it created. 
#  
# This file, and the files included with this file, is distributed and made 
# available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 
# EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL SUCH WARRANTIES, 
# INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS 
# FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 
# 
# Technology Compatibility Kit Test Suite(s) Location: 
#    http://www.helixcommunity.org/content/tck 
# 
# Contributor(s): 
#  
# ***** END LICENSE BLOCK ***** 
# 

project.RemoveSources("platform/win/casynnet.cpp")

# No low heap streaming otherwise http stream gets downloaded entirely
#project.RemoveDefines('HELIX_FEATURE_MIN_HEAP')

project.AddDefines('HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP')

Index: thrdconn.cpp
===================================================================
RCS file: /cvsroot/common/netio/thrdconn.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- thrdconn.cpp	20 Nov 2003 01:58:46 -0000	1.11
+++ thrdconn.cpp	21 Apr 2004 23:25:34 -0000	1.12
@@ -79,6 +79,12 @@
     return new ThreadedConn(type);
 }
 
+#ifdef THREADS_SUPPORTED
+#ifdef HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+#define DEFAULT_NETWORK_THREAD_SLEEP	50
+#endif //HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+#endif //THREADS_SUPPORTED
+
 /*
 HXThread*
 ThreadedConn::GetNetworkThread(void)
@@ -134,6 +140,11 @@
 #if defined (_WIN32) || defined (WIN32)
     , m_pNotifier(NULL)
 #endif
+#ifdef THREADS_SUPPORTED
+#ifdef HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+    , m_ulNetworkThreadSleep(DEFAULT_NETWORK_THREAD_SLEEP)
+#endif //HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+#endif //THREADS_SUPPORTED
 {
     m_pActualConn = conn::actual_new_socket(type);
     m_pActualConn->AddRef();
@@ -180,7 +191,6 @@
         }
         m_pReceiveTCP->SetMaxSize(TCP_BUF_SIZE);
     }
-
 }
 
 ThreadedConn::~ThreadedConn()
@@ -1417,6 +1427,11 @@
         goto exit;
     }
 
+#ifdef THREADS_SUPPORTED
+#ifdef HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+    Sleep( m_ulNetworkThreadSleep );	// gives other threads a quote to run
+#endif //HELIX_FEATURE_ADD_NETWORK_THREAD_SLEEP
+#endif //THREADS_SUPPORTED
 
     if (m_uSocketType == HX_TCP_SOCKET)
     {




More information about the Common-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.