Skip to content

Conversation

@ab9rf
Copy link
Member

@ab9rf ab9rf commented May 4, 2025

Most of these changes address removing unnecessary type erasures

Several related to the change to std::thread; std::thread is polymorphic while our preceding threading library was not. When we converted, we never removed the type erasure the prior library required

The other major change is to switch RunQueryCoreLoop to take a std::function instead of a bare function pointer and a type-erased argument list. This makes the functors for RunQueryCoreLoop more transparent and easier to understand. Hopefully gcc 10 will accept std::placeholders. :)

@myk002 myk002 added this to 51.11-r2 May 4, 2025
@github-project-automation github-project-automation bot moved this to Todo in 51.11-r2 May 4, 2025
@myk002
Copy link
Member

myk002 commented May 4, 2025

Hopefully gcc 10 will accept std::placeholders

Yeah I used those in stockpiles without issues

@github-project-automation github-project-automation bot moved this from Todo to Review In Progress in 51.11-r2 May 4, 2025
@myk002 myk002 merged commit 4b45993 into DFHack:develop May 4, 2025
14 checks passed
@github-project-automation github-project-automation bot moved this from Review In Progress to Done in 51.11-r2 May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants