Skip to content

cockroach-go1.25rc2: runtime: add CurrentP#7

Open
RaduBerinde wants to merge 1 commit into
cockroachdb:cockroach-go1.25rc2from
RaduBerinde:add-current-p-1.25rc2
Open

cockroach-go1.25rc2: runtime: add CurrentP#7
RaduBerinde wants to merge 1 commit into
cockroachdb:cockroach-go1.25rc2from
RaduBerinde:add-current-p-1.25rc2

Conversation

@RaduBerinde
Copy link
Copy Markdown
Member

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.

Port of #6

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant