add sleep, lock/unlock functions
3 files changed