public boolean function isSleeping( any thethread )
Whether or not the given thread is currently sleeping