diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-22 20:33:32 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-22 20:33:32 +0200 |
| commit | f649f89201cf1b8a8a8aab98dba91bbbd96ecd09 (patch) | |
| tree | ae679a032479c92ff5d18169b73d7b3921706bde /internal/syncpool/syncpool.go | |
| parent | e800879cd818f51f83c3bfa86a42aa331a58af0c (diff) | |
finally make use of the NQC's generated code
Diffstat (limited to 'internal/syncpool/syncpool.go')
| -rw-r--r-- | internal/syncpool/syncpool.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/syncpool/syncpool.go b/internal/syncpool/syncpool.go deleted file mode 100644 index c41034f..0000000 --- a/internal/syncpool/syncpool.go +++ /dev/null @@ -1,19 +0,0 @@ -package syncpool - -import ( - "ioriotng/internal/types" - "sync" -) - -func syncPool[T any]() sync.Pool { - return sync.Pool{ - New: func() interface{} { - var value T - return &value - }, - } -} - -var OpenEnterEvent = syncPool[types.OpenatEnterEvent]() -var FdEvent = syncPool[types.FdEvent]() -var NullEvent = syncPool[types.NullEvent]() |
