Files
node/lib
Anna Henningsen 393c196605 worker: refactor thread id management
- Assign thread IDs to `Environment` instances, rather than Workers.
  This is more embedder-friendly than the current system, in which
  all “main threads” (if there are multiple ones) would get the
  id `0`.
- Because that means that `isMainThread === (threadId === 0)` no longer
  holds, refactor `isMainThread` into a separate entity. Implement it
  in a way that allows for future extensibility, because we use
  `isMainThread` in multiple different ways (determining whether there
  is a parent thread; determining whether the current thread has control
  of the current process; etc.).

PR-URL: https://github.com/nodejs/node/pull/25796
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
2019-02-01 20:22:33 +01:00
..
2018-12-10 17:07:18 +01:00
2018-11-06 10:58:42 -05:00
2018-11-20 10:42:31 -08:00
2019-01-27 17:20:13 +01:00
2019-01-16 12:41:56 +09:00
2018-07-16 15:55:15 -07:00
2017-03-10 11:23:48 -08:00
2019-01-28 16:25:07 -08:00
2018-12-29 13:36:57 -05:00
2019-01-05 21:36:46 +01:00