Skip to main content
Gnet -- Support locking OS thread
  1. Posts/

Gnet -- Support locking OS thread

·66 words·1 min·
Andy Pan
Author
Andy Pan
LIVE FAST. DIE YOUNG. BE WILD. HAVE FUN.
Table of Contents
gnet-milestone - This article is part of a series.
Part 5: This Article

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.

Reply by Email
gnet-milestone - This article is part of a series.
Part 5: This Article

Related


comments powered by Disqus