CoState should be thread local (move pUnkState into TLS)
Robert Shearman
R.J.Shearman at warwick.ac.uk
Sat Jun 14 18:05:12 CDT 2003
> From: Mike Hearn <mike at theoretic.com>
> To: wine-patches at winehq.org
> Date: 14 Jun 2003 22:53:02 +0100
> Reply-To: wine-devel at winehq.com
>
>
> ChangeLog:
> CoState storage should be thread local
<snip>
> +static DWORD dwUnkStateSlot = 0; /* TLS slot used to the store
> the UnkState, see CoSetState */
Please use the APARTMENT structure defined by Ove Kaaven recently (in
compobj_private.h), so that:
1. We keep all of the apartment data together
2. Don't use up a TLS slot unnecessarily
Thanks,
Rob
More information about the wine-devel
mailing list