* RemotingServices.cs: (NewUri) use Interlocked.Increment on next_id.
svn path=/trunk/mcs/; revision=19285
+2003-10-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * RemotingServices.cs: (NewUri) use Interlocked.Increment on next_id.
+
2003-10-09 Lluis Sanchez Gual <lluis@ximian.com>
* ObjRef.cs: Added new constructor to support CAD channel.
static string NewUri ()
{
- return app_id + Environment.TickCount + "_" + next_id++;
+ int n = Interlocked.Increment (ref next_id);
+ return app_id + Environment.TickCount + "_" + n;
}
public static RealProxy GetRealProxy (object proxy)