Переглянути джерело

!3 st not print create thread

chenliangyu 1 рік тому
батько
коміт
3b8fff2588

+ 1 - 1
Module/mod_chromium/CModTools.cpp

@@ -1076,7 +1076,7 @@ namespace Chromium {
 
 	void CModTools::cefClientGuardian(std::string cmdline)
 	{
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		m_isGuardMainBrowser = true;
 		while (m_isGuardMainBrowser)
 		{

+ 1 - 1
Module/mod_chromium/CSocketClient.cpp

@@ -216,7 +216,7 @@ namespace Chromium {
 	}
 
 	void CSocketClient::thread_recv() {
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		try
 		{
 			// time out for select

+ 3 - 3
Module/mod_chromium/CWebsocketServer.cpp

@@ -691,7 +691,7 @@ namespace Chromium {
 
 		auto msgHandleFun = [&]() {
 			//DbgEx("CWebsocketServer -> message_handler");
-			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+			//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			std::string payload = msg->get_payload();
 			// proto convert here
 #if (defined _WIN32 || defined _WIN64)
@@ -840,7 +840,7 @@ namespace Chromium {
 	}
 
 	void CWebsocketServer::do_run() {
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		// Start the Asio io_service run loop
 		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("CWebsocketServer -> do_run, Start the Asio io_service run loop");
 		while (!boost::this_thread::interruption_requested())
@@ -1165,7 +1165,7 @@ namespace Chromium {
 
 	// socket message handler
 	void CWebsocketServer::message_from_socket(CMessage& msg, unsigned int id) {
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		// get message from socket and deserialize 
 		// then send back to the web client
 		auto bufferLength = msg.getBufferLength();

+ 5 - 5
Module/mod_chromium/mod_chromium.cpp

@@ -694,7 +694,7 @@ namespace Chromium {
 
 		//all the init,register,openWeb run thread
 		auto startFun = [&]() {
-			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+			//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("OnPreStart - startFun");
 			// init cef logger first
 #if (defined _WIN32 || defined _WIN64)
@@ -840,7 +840,7 @@ namespace Chromium {
 
 	void CChromiumEntity::DoWithSysVarEvent()
 	{
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		while (true)
 		{
 			if (m_eventArr.size() == 0)
@@ -1132,7 +1132,7 @@ namespace Chromium {
 			tmpDirArr.get()->push_back(it);
 
 		auto runCacheClean = [](std::shared_ptr<std::vector<std::string>> p) ->void {
-			DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+			//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 			CModTools::get_mutable_instance().StopChromiumBrowser(ERR_PAGE_REASON::breakdown, true);//close all tab
 			for each (auto it in *p.get())
 			{
@@ -1203,7 +1203,7 @@ namespace Chromium {
 	}
 
 	void CChromiumEntity::checkUrlStartTime() {
-		DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+		//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 		std::string startTimeStr = boost::posix_time::to_iso_extended_string(boost::posix_time::microsec_clock::local_time());
 		int pos = startTimeStr.find('T');
 		startTimeStr.replace(pos, 1, std::string(" "));
@@ -1312,7 +1312,7 @@ namespace Chromium {
 			else
 			{
 				auto monitorThread = [&](HANDLE job, HANDLE process) {
-					DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
+					//DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("create thread:%s", __FUNCTION__);
 					while (1)
 					{
 						if (WaitForSingleObject(process, 10) != WAIT_OBJECT_0)	//process end