Opened 3 years ago

Last modified 5 months ago

#5874 new task

Threading improvements — at Version 2

Reported by: wraitii Owned by:
Priority: Must Have Milestone: Work In Progress
Component: Core engine Keywords:
Cc: Patch:

Description (last modified by wraitii)

We currently use std::thread in a number of places:

  • map generator
  • net client
  • net server
  • user reporter
  • sound
  • (More?)

And soon we hope:

  • pathfinder

There are issues with our implementation: we use "naked" std::thread instead of cleverer solutions. This, notably, means we fail to detect exceptions happening in the threads (see https://code.wildfiregames.com/rP22649#45341 ) A better architecture ought to be found and implemented.

Change History (2)

comment:2 by wraitii, 3 years ago

Description: modified (diff)
Milestone: Alpha 24Alpha 25

Net client was threaded in A24, A25 will hopefully thread the pathfinder.

Note: See TracTickets for help on using tickets.