Commit Graph

10 Commits

Author SHA1 Message Date
John Hurliman
68b1bc1ef7 Initial commit of OpenMetaverse.Parallel in OpenMetaverseTypes.dll. This adds Parallel.For() and Parallel.ForEach() static methods that behave similar to the new parallel extensions in C# 4.0
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3035 52acb1d6-8a22-11de-b505-999d5b087335
2009-07-30 21:33:28 +00:00
John Hurliman
de9f01f882 * Changing RegionInfo.Capabilities from Dictionary<string, Uri> to Dictionary<Uri, Uri> since all service methods use full URI identifiers now
* Added Utils.HostnameToIPv4() to OpenMetaverseTypes.dll

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2900 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-17 00:52:39 +00:00
John Hurliman
c7292118b1 * Adding SHA256 methods to OpenMetaverseTypes
* Implementing CreateAssetMessage and CreateAssetReplyMessage in Cable Beach messages

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2880 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-13 00:27:54 +00:00
John Hurliman
93a7cc5767 Rewrote the locking in ExpiringCache to use a simple Monitor instead of ReaderWriterLock, since nearly every access is a write operation. This also gets rid of a bug where a writer lock was not properly freed in ExpiringCache.TryGetValue()
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2874 52acb1d6-8a22-11de-b505-999d5b087335
2009-06-10 06:49:52 +00:00
John Hurliman
bb68819d3f Removing CircularHashedQueue since 1) the implementation was wrong, 2) it was highly specific to a single task in ACK management and not a generally useful collection
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2774 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-16 10:55:19 +00:00
John Hurliman
30e17756d0 * Adding try/finally blocks for every lock acquisition in DoubleDictionary to keep exceptions from putting the collection in an inconsistent state
* Removed [] get accessors until someone can demonstrate thread-safe code that uses them (they encourage non-threadsafe code patterns)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2773 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-16 09:28:03 +00:00
John Hurliman
2520b6d0ea * Adding a LocklessQueue collection to OpenMetaverseTypes
* Fixing minor compile warnings

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2772 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-16 09:12:12 +00:00
John Hurliman
ef072802d4 Changed DoubleDictionary to use ReaderWriteLockSlim
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2771 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-16 02:00:11 +00:00
John Hurliman
8014afcc3e * Added ReaderWriterLockSlim.cs to OpenMetaverseTypes from the Mono SVN
* Prebuild will now define the VISUAL_STUDIO symbol in .csproj files while leaving NAnt files alone
* A conditional was added to use the .NET ReaderWriterLockSlim for VS compiles and the one in OpenMetaverseTypes for Mono compiles. This is a kludge until everyone is running Mono 2.6 or later (hah)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2769 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-16 01:34:41 +00:00
John Hurliman
ad102f3ea9 Moving OpenMetaverseTypes library to its own folder. This will save a lot of prebuild headaches
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2744 52acb1d6-8a22-11de-b505-999d5b087335
2009-05-11 19:28:50 +00:00