From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- libcult/examples/sched/main/main.cxx | 43 ------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 libcult/examples/sched/main/main.cxx (limited to 'libcult/examples/sched/main/main.cxx') diff --git a/libcult/examples/sched/main/main.cxx b/libcult/examples/sched/main/main.cxx deleted file mode 100644 index 58cc2cc..0000000 --- a/libcult/examples/sched/main/main.cxx +++ /dev/null @@ -1,43 +0,0 @@ -// file : examples/sched/main/main.cxx -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Boris Kolpackov -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file - -#include - -#include -#include - -#include -#include // sleep - -using namespace Cult; -using namespace Sched; - -using std::cerr; -using std::endl; - -Void* -thread_func (Void*) -{ - cerr << "second thread: going to sleep for a few seconds" << endl; - - sleep (2); - - cerr << "second thread: woke up, now exiting" << endl; - - return 0; -} - - -Int -main () -{ - Shptr self (new Thread); - - Shptr other (new Thread (thread_func)); - - cerr << "initial thread: exiting" << endl; - - Thread::exit (0); -} -- cgit v1.2.3