1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00
Sergey Vinogradov 065e609cbf Refactor "process" package
* All context-less wrapping functions (the ones without WithContext
suffix) were moved into process.go since they all are the same.
* Call context is now passed to all underlying functions in
*WithContext() functions.
* All common *BSD bits were moved to process_bsd.go.
* Process.Tgid() method lacked a WithContext counterpart, so
Process.TgidWithContext() was added for uniformity.
* NewProcessWithContext() function was added since NewProcess() is
used a lot throughout the module, and there is no way to pass a
context to it.

This is a part of #761 effort.
2020-10-12 18:15:29 +03:00
..
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2017-02-01 23:05:29 +00:00
2017-02-01 23:05:29 +00:00
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2017-02-01 23:05:29 +00:00
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2020-10-12 18:15:29 +03:00
2020-08-10 21:26:24 -07:00
2017-02-01 23:05:29 +00:00