Something needs to happen with shared, and soon.
Jacob Carlborg
doob at me.com
Thu Nov 15 01:22:22 PST 2012
On 2012-11-14 22:06, Walter Bright wrote:
> I hate to repeat myself, but:
>
> Thread 1:
> 1. create shared object
> 2. pass reference to that object to Thread 2
> 3. destroy object
>
> Thread 2:
> 1. manipulate that object
Why would the object be destroyed if there's still a reference to it? If
the object is manually destroyed I don't see what threads have to do
with it since you can do the same thing in a single thread application.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list