[Freeswitch-svn] [commit] r10484 - in freeswitch/trunk/src: . include

FreeSWITCH SVN mikej at freeswitch.org
Thu Nov 20 15:03:25 PST 2008


Author: mikej
Date: Thu Nov 20 18:03:25 2008
New Revision: 10484

Log:
add msleep

Modified:
   freeswitch/trunk/src/include/switch_cpp.h
   freeswitch/trunk/src/switch_cpp.cpp

Modified: freeswitch/trunk/src/include/switch_cpp.h
==============================================================================
--- freeswitch/trunk/src/include/switch_cpp.h	(original)
+++ freeswitch/trunk/src/include/switch_cpp.h	Thu Nov 20 18:03:25 2008
@@ -373,6 +373,7 @@
 
 SWITCH_DECLARE(void) console_log(char *level_str, char *msg);
 SWITCH_DECLARE(void) console_clean_log(char *msg);
+SWITCH_DECLARE(void) msleep(uint32_t ms);
 
 /** \brief bridge the audio of session_b into session_a
  * 

Modified: freeswitch/trunk/src/switch_cpp.cpp
==============================================================================
--- freeswitch/trunk/src/switch_cpp.cpp	(original)
+++ freeswitch/trunk/src/switch_cpp.cpp	Thu Nov 20 18:03:25 2008
@@ -1090,6 +1090,12 @@
 }
 
 
+SWITCH_DECLARE(void) msleep(uint32_t ms)
+{
+	switch_sleep(ms * 1000);
+	return;
+}
+
 SWITCH_DECLARE(void) bridge(CoreSession &session_a, CoreSession &session_b)
 {
     switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "bridge called, session_a uuid: %s\n", session_a.get_uuid());



More information about the Freeswitch-svn mailing list