diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-10-06 07:01:28 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-10-06 07:01:28 +0000 |
commit | 313e28df2a8776c82f5493aef6fe44ad40f1935a (patch) | |
tree | 219d5ff889b85773a6670fdff28c2043b14a1f09 /src/tests/minicron.cpp | |
parent | 0bb8c5962e93fae4a2542d57efe8e87d30d8f0fb (diff) | |
download | libbu++-313e28df2a8776c82f5493aef6fe44ad40f1935a.tar.gz libbu++-313e28df2a8776c82f5493aef6fe44ad40f1935a.tar.bz2 libbu++-313e28df2a8776c82f5493aef6fe44ad40f1935a.tar.xz libbu++-313e28df2a8776c82f5493aef6fe44ad40f1935a.zip |
Changed the Bu::Heap to allow iteration, and added lots of cool features to
Bu::MiniCron.
Diffstat (limited to 'src/tests/minicron.cpp')
-rw-r--r-- | src/tests/minicron.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/tests/minicron.cpp b/src/tests/minicron.cpp index 8abf8ad..0749f90 100644 --- a/src/tests/minicron.cpp +++ b/src/tests/minicron.cpp | |||
@@ -41,11 +41,14 @@ void job3( Bu::MiniCron::Job &job ) | |||
41 | 41 | ||
42 | int main() | 42 | int main() |
43 | { | 43 | { |
44 | 44 | mCron.addJob( | |
45 | mCron.addJob( slot( &job0 ), MiniCron::TimerInterval( time(NULL)+3, 5 ) ); | 45 | "job0", slot( &job0 ), MiniCron::TimerInterval( time(NULL)+3, 5 ) ); |
46 | mCron.addJob( slot( &job1 ), MiniCron::TimerInterval( time(NULL)+10, 8 ) ); | 46 | mCron.addJob( |
47 | mCron.addJob( slot( &job2 ), MiniCron::TimerBasic("weekly wed 17") ); | 47 | "job1", slot( &job1 ), MiniCron::TimerInterval( time(NULL)+10, 8 ) ); |
48 | mCron.addJob( slot( &job3 ), MiniCron::TimerInterval( time(NULL)+1, 2 ) ); | 48 | mCron.addJob( |
49 | "job2", slot( &job2 ), MiniCron::TimerBasic("weekly wed 17") ); | ||
50 | mCron.addJob( | ||
51 | "job3", slot( &job3 ), MiniCron::TimerInterval( time(NULL)+1, 2 ) ); | ||
49 | 52 | ||
50 | sio << time( NULL ) << ": Program started." << sio.nl; | 53 | sio << time( NULL ) << ": Program started." << sio.nl; |
51 | 54 | ||