本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
587B

  1. // Copyright 2012 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build windows,race
  5. package windows
  6. import (
  7. "runtime"
  8. "unsafe"
  9. )
  10. const raceenabled = true
  11. func raceAcquire(addr unsafe.Pointer) {
  12. runtime.RaceAcquire(addr)
  13. }
  14. func raceReleaseMerge(addr unsafe.Pointer) {
  15. runtime.RaceReleaseMerge(addr)
  16. }
  17. func raceReadRange(addr unsafe.Pointer, len int) {
  18. runtime.RaceReadRange(addr, len)
  19. }
  20. func raceWriteRange(addr unsafe.Pointer, len int) {
  21. runtime.RaceWriteRange(addr, len)
  22. }
上海开阖软件有限公司 沪ICP备12045867号-1