1 //go:build moxie.unicore
2 3 package task
4 5 // PMutex is a real mutex on systems that can be either preemptive or threaded,
6 // and a dummy lock on other (purely cooperative) systems.
7 //
8 // It is mainly useful for short operations that need a lock when threading may
9 // be involved, but which do not need a lock with a purely cooperative
10 // scheduler.
11 type PMutex struct {
12 }
13 14 func (m *PMutex) Lock() {
15 }
16 17 func (m *PMutex) Unlock() {
18 }
19