ia64/xen-unstable

changeset 7951:a0b0da36fda3

Removed, now unused.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Mon Nov 21 13:15:08 2005 +0100 (2005-11-21)
parents 64e43d615167
children 675862d22347
files
line diff
     1.1 --- a/tools/python/xen/xend/scheduler.py	Mon Nov 21 13:14:38 2005 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,42 +0,0 @@
     1.4 -#============================================================================
     1.5 -# This library is free software; you can redistribute it and/or
     1.6 -# modify it under the terms of version 2.1 of the GNU Lesser General Public
     1.7 -# License as published by the Free Software Foundation.
     1.8 -#
     1.9 -# This library is distributed in the hope that it will be useful,
    1.10 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.11 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.12 -# Lesser General Public License for more details.
    1.13 -#
    1.14 -# You should have received a copy of the GNU Lesser General Public
    1.15 -# License along with this library; if not, write to the Free Software
    1.16 -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1.17 -#============================================================================
    1.18 -# Copyright (C) 2004, 2005 Mike Wray <mike.wray@hp.com>
    1.19 -# Copyright (C) 2005 XenSource Ltd
    1.20 -#============================================================================
    1.21 -
    1.22 -import threading
    1.23 -
    1.24 -def later(delay, fn, *args, **kwargs):
    1.25 -    """Schedule a function to be called later.
    1.26 -
    1.27 -    @param delay:  delay in seconds
    1.28 -    @param fn:     function
    1.29 -    @param args:   arguments (list)
    1.30 -    @param kwargs  keyword arguments (map)
    1.31 -    """
    1.32 -    timer = threading.Timer(delay, fn, args=args, kwargs=kwargs)
    1.33 -    timer.start()
    1.34 -    return timer
    1.35 -
    1.36 -def now(fn, *args, **kwargs):
    1.37 -    """Schedule a function to be called now.
    1.38 -
    1.39 -    @param fn:     function
    1.40 -    @param args:   arguments (list)
    1.41 -    @param kwargs  keyword arguments (map)
    1.42 -    """
    1.43 -    thread = threading.Thread(target=fn, args=args, kwargs=kwargs)
    1.44 -    thread.start()
    1.45 -    return thread