From 9e745ddb102abaf65cd22ee2ee86a11367133609 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 22 Jan 2018 07:21:07 -0800 Subject: Added an unshare function to Bu::SharedCore. It simply forces a hard copy, which means the instance you called this on will be independant of any other copies. It's something that should exist, but I'm not sure if unshare is the right name. It's in there now, though. --- src/stable/sharedcore.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/stable') diff --git a/src/stable/sharedcore.h b/src/stable/sharedcore.h index 9108294..e68cf21 100644 --- a/src/stable/sharedcore.h +++ b/src/stable/sharedcore.h @@ -113,6 +113,11 @@ namespace Bu return dynamic_cast(rOther).core == core; } + void unshare() + { + _hardCopy(); + } + protected: Core *core; void _hardCopy() -- cgit v1.2.3