1
0
mirror of https://github.com/golang/go synced 2024-11-19 13:24:42 -07:00
go/misc/cgo/test/sleep_windows_386.go

21 lines
483 B
Go
Raw Normal View History

// Copyright 2011 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.
package cgotest
/*
// mingw32 on windows/386 provides usleep() but not sleep(),
// as we don't want to require all other OSes to provide usleep,
// we emulate sleep(int s) using win32 API Sleep(int ms).
#include <windows.h>
unsigned int sleep(unsigned int seconds) {
Sleep(1000 * seconds);
return 0;
}
*/
import "C"