mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
16 lines
184 B
Go
16 lines
184 B
Go
package model
|
|
|
|
import "sync"
|
|
|
|
type TestRecord struct {
|
|
Base
|
|
lock sync.Mutex
|
|
}
|
|
|
|
func (tm *TestRecord) Lock() {
|
|
tm.lock.Lock()
|
|
}
|
|
|
|
func (tm *TestRecord) Unlock() {
|
|
tm.lock.Unlock()
|
|
}
|