Add timers examples to documentation, and include them in boost layout

package.
This commit is contained in:
chris_kohlhoff 2006-07-23 01:23:56 +00:00
parent 7dfa277052
commit 9dcd7f5282
4 changed files with 72 additions and 0 deletions

View File

@ -250,6 +250,7 @@ sub copy_examples
"src/examples/services", "src/examples/services",
"src/examples/ssl", "src/examples/ssl",
"src/examples/timeouts", "src/examples/timeouts",
"src/examples/timers",
"src/examples/tutorial", "src/examples/tutorial",
"src/examples/tutorial/daytime1", "src/examples/tutorial/daytime1",
"src/examples/tutorial/daytime2", "src/examples/tutorial/daytime2",

View File

@ -106,6 +106,13 @@ operations after a period of time.
\li \ref timeouts_datagram_receive_timeout_cpp \li \ref timeouts_datagram_receive_timeout_cpp
\li \ref timeouts_stream_receive_timeout_cpp \li \ref timeouts_stream_receive_timeout_cpp
\section timers_section Timers
Examples showing how to customise deadline_timer using different time types.
\li \ref timers_tick_count_timer_cpp
\li \ref timers_time_t_timer_cpp
*/ */
/** /**
@ -267,3 +274,13 @@ operations after a period of time.
\page timeouts_stream_receive_timeout_cpp timeouts/stream_receive_timeout.cpp \page timeouts_stream_receive_timeout_cpp timeouts/stream_receive_timeout.cpp
\include timeouts/stream_receive_timeout.cpp \include timeouts/stream_receive_timeout.cpp
*/ */
/**
\page timers_tick_count_timer_cpp timers/tick_count_timer.cpp
\include timers/tick_count_timer.cpp
*/
/**
\page timers_time_t_timer_cpp timers/time_t_timer.cpp
\include timers/time_t_timer.cpp
*/

View File

@ -106,6 +106,13 @@ operations after a period of time.
\li \ref timeouts_datagram_receive_timeout_cpp \li \ref timeouts_datagram_receive_timeout_cpp
\li \ref timeouts_stream_receive_timeout_cpp \li \ref timeouts_stream_receive_timeout_cpp
\section timers_section Timers
Examples showing how to customise deadline_timer using different time types.
\li \ref timers_tick_count_timer_cpp
\li \ref timers_time_t_timer_cpp
*/ */
/** /**
@ -267,3 +274,13 @@ operations after a period of time.
\page timeouts_stream_receive_timeout_cpp timeouts/stream_receive_timeout.cpp \page timeouts_stream_receive_timeout_cpp timeouts/stream_receive_timeout.cpp
\include timeouts/stream_receive_timeout.cpp \include timeouts/stream_receive_timeout.cpp
*/ */
/**
\page timers_tick_count_timer_cpp timers/tick_count_timer.cpp
\include timers/tick_count_timer.cpp
*/
/**
\page timers_time_t_timer_cpp timers/time_t_timer.cpp
\include timers/time_t_timer.cpp
*/

View File

@ -0,0 +1,37 @@
#
# Copyright (c) 2003-2006 Christopher M. Kohlhoff (chris at kohlhoff dot com)
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
subproject libs/asio/example/timers ;
project boost : $(BOOST_ROOT) ;
if $(UNIX)
{
switch $(JAMUNAME)
{
case SunOS* :
{
SOCKET_LIBS = <find-library>socket <find-library>nsl ;
}
}
}
template asio_timers_example
: <lib>@boost/libs/thread/build/boost_thread
: <include>$(BOOST_ROOT)
<include>../../../..
<define>BOOST_ALL_NO_LIB=1
<threading>multi
<mingw><*><find-library>ws2_32
<mingw><*><find-library>mswsock
$(SOCKET_LIBS)
;
exe time_t_timer
: <template>asio_timers_example
time_t_timer.cpp
;