2011-01-13 05:17:52 +00:00
|
|
|
// sleep_rtems.go -- Sleep on RTEMS.
|
|
|
|
|
|
|
|
// Copyright 2010 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
2016-08-06 00:36:33 +00:00
|
|
|
// +build rtems
|
|
|
|
|
2011-01-24 22:44:52 +00:00
|
|
|
package syscall
|
|
|
|
|
2011-12-12 23:40:51 +00:00
|
|
|
func Sleep(nsec int64) (err error) {
|
2011-01-13 05:17:52 +00:00
|
|
|
ts := NsecToTimespec(nsec)
|
2011-12-12 23:40:51 +00:00
|
|
|
err = Nanosleep(&ts, nil)
|
2011-01-13 05:17:52 +00:00
|
|
|
return
|
|
|
|
}
|