Commit 370d2fb
cockroach: runtime: add CurrentP
Add a simple function that returns the index of the P the goroutine is
running on. This will be used for efficient sharding of data
structures.1 parent 5671983 commit 370d2fb
1 file changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments