-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
embed original structs in debug structs
- Loading branch information
Showing
5 changed files
with
35 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package sync | ||
|
||
// Cond is only defined for compatibility reasons | ||
import ( | ||
_sync "sync" | ||
) | ||
|
||
// Cond implements a condition variable, a rendezvous point for goroutines | ||
// waiting for or announcing the occurrence of an event. | ||
type Cond struct { | ||
_sync.Cond | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
package sync | ||
|
||
// Locker is only defined for compatibility reasons | ||
import ( | ||
_sync "sync" | ||
) | ||
|
||
// A Locker represents an object that can be locked and unlocked. | ||
type Locker interface { | ||
Lock() | ||
Unlock() | ||
_sync.Locker | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
package sync | ||
|
||
// Map is only defined for compatibility reasons | ||
import ( | ||
_sync "sync" | ||
) | ||
|
||
// Map is like a Go map[interface{}]interface{} but is safe for concurrent use | ||
// by multiple goroutines without additional locking or coordination. Loads, | ||
// stores, and deletes run in amortized constant time. | ||
type Map struct { | ||
_sync.Map | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package sync | ||
|
||
// Once is only defined for compatibility reasons | ||
import ( | ||
_sync "sync" | ||
) | ||
|
||
// Once is an object that will perform exactly one action. | ||
// Once is an object that will perform exactly one action. | ||
type Once struct { | ||
_sync.Once | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package sync | ||
|
||
// Pool is only defined for compatibility reasons | ||
import ( | ||
_sync "sync" | ||
) | ||
|
||
// A Pool is a set of temporary objects that may be individually saved | ||
// and retrieved. | ||
type Pool struct { | ||
_sync.Pool | ||
} |