Skip to content

Commit

Permalink
Align Context API with kernel internals.
Browse files Browse the repository at this point in the history
This change adapts the existing context to use more suitable non-channel-based
methods. This is a requisite for migrating the kernel internals to a
sleeper-based notification mechanism.

The last uses of amutex outside those migrated as part of this change were
dropped in a previous change. Since amutex depends on the channel-based
implementation, this package is also deleted as part of this change.

PiperOrigin-RevId: 415189675
  • Loading branch information
amscanne authored and gvisor-bot committed Dec 9, 2021
1 parent ba86510 commit dedb7e6
Show file tree
Hide file tree
Showing 34 changed files with 497 additions and 851 deletions.
21 changes: 0 additions & 21 deletions pkg/amutex/BUILD

This file was deleted.

113 changes: 0 additions & 113 deletions pkg/amutex/amutex.go

This file was deleted.

98 changes: 0 additions & 98 deletions pkg/amutex/amutex_test.go

This file was deleted.

5 changes: 4 additions & 1 deletion pkg/context/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ package(licenses = ["notice"])

go_library(
name = "context",
srcs = ["context.go"],
srcs = [
"context.go",
],
visibility = ["//:sandbox"],
deps = [
"//pkg/log",
"//pkg/waiter",
],
)
Loading

0 comments on commit dedb7e6

Please sign in to comment.