2011-01-13 06:17:52 +01: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 02:36:33 +02:00
|
|
|
// +build rtems
|
|
|
|
|
2011-01-24 23:44:52 +01:00
|
|
|
package syscall
|
|
|
|
|
2011-12-13 00:40:51 +01:00
|
|
|
func Sleep(nsec int64) (err error) {
|
2011-01-13 06:17:52 +01:00
|
|
|
ts := NsecToTimespec(nsec)
|
2011-12-13 00:40:51 +01:00
|
|
|
err = Nanosleep(&ts, nil)
|
2011-01-13 06:17:52 +01:00
|
|
|
return
|
|
|
|
}
|