Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Debug code to assert Task's data destructor are called when type is non trivially destructible. #5

Conversation

LuisAntonRebollo
Copy link

@LuisAntonRebollo LuisAntonRebollo commented Apr 7, 2019

A different idea related the data destructors.

This code only works when GTS_ASSERT are enabled, in this way the performance in release in not affected.

The new asserts ensure Task::destructData will be called before any other data initialization or Task destruction.

Note: this PR is mostly for discussion about the idea, as i feel i have not sufficient knowledge on how GTS works.

@LuisAntonRebollo LuisAntonRebollo force-pushed the feature_task_data_destructor_assert branch from bcd68f3 to 224bffb Compare April 7, 2019 08:30
@LuisAntonRebollo LuisAntonRebollo deleted the feature_task_data_destructor_assert branch April 13, 2019 15:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants