github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/runtime/sync.go (about)

     1  package runtime
     2  
     3  // This file contains stub implementations for internal/poll.
     4  
     5  //go:linkname semacquire internal/poll.runtime_Semacquire
     6  func semacquire(sema *uint32) {
     7  	panic("todo: semacquire")
     8  }
     9  
    10  //go:linkname semrelease internal/poll.runtime_Semrelease
    11  func semrelease(sema *uint32) {
    12  	panic("todo: semrelease")
    13  }