# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID a0b0da36fda3a024ba793d5baaa45777d37d2d71
# Parent 64e43d615167c036b3c3a3baad12b93bf644bb42
Removed, now unused.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
diff -r 64e43d615167 -r a0b0da36fda3 tools/python/xen/xend/scheduler.py
--- a/tools/python/xen/xend/scheduler.py Mon Nov 21 12:14:38 2005
+++ /dev/null Mon Nov 21 12:15:08 2005
@@ -1,42 +0,0 @@
-#============================================================================
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of version 2.1 of the GNU Lesser General Public
-# License as published by the Free Software Foundation.
-#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-#============================================================================
-# Copyright (C) 2004, 2005 Mike Wray <mike.wray@xxxxxx>
-# Copyright (C) 2005 XenSource Ltd
-#============================================================================
-
-import threading
-
-def later(delay, fn, *args, **kwargs):
- """Schedule a function to be called later.
-
- @param delay: delay in seconds
- @param fn: function
- @param args: arguments (list)
- @param kwargs keyword arguments (map)
- """
- timer = threading.Timer(delay, fn, args=args, kwargs=kwargs)
- timer.start()
- return timer
-
-def now(fn, *args, **kwargs):
- """Schedule a function to be called now.
-
- @param fn: function
- @param args: arguments (list)
- @param kwargs keyword arguments (map)
- """
- thread = threading.Thread(target=fn, args=args, kwargs=kwargs)
- thread.start()
- return thread
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|