forked from panjf2000/gnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
site: add a highlight of new feature
Related to panjf2000#133
- Loading branch information
Showing
2 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
website/highlights/2020-09-13-supported-locking-os-thread.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
last_modified_on: "2020-09-13" | ||
$schema: "/.meta/.schemas/highlights.json" | ||
title: "Support locking OS thread" | ||
description: "Support locking each I/O event-loop goroutine to an OS thread" | ||
author_github: "https://github.com/panjf2000" | ||
pr_numbers: [6fd6413] | ||
release: "features" | ||
hide_on_release_notes: false | ||
tags: ["type: new feature", "domain: thread", "platform: arm64"] | ||
--- | ||
|
||
## About this change | ||
|
||
Add functional option `LockOSThread` used to determine whether each I/O event-loop is associated to an OS thread, it is useful when you need some kind of mechanisms like thread local storage, | ||
or invoke certain C libraries (such as graphics lib: GLib) that require thread-level manipulation via cgo, or want all I/O event-loops to actually run in parallel for a potential higher performance. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters