Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-2012 Add support for ConcurrentLinkedQueue type in .NET/C++ #310

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ internal static class BinaryUtils
/** Collection: concurrent bag. */
public const byte CollectionConcurrentBag = 6;

/** Collection: concurrent queue. */
public const byte CollectionConcurrentQueue = 7;

/** Map: custom. */
public const byte MapCustom = 0;

Expand Down Expand Up @@ -1100,6 +1103,8 @@ public static void WriteCollection(ICollection val, BinaryWriter ctx)
colType = CollectionSortedSet;
else if (genType == typeof (ConcurrentBag<>))
colType = CollectionConcurrentBag;
else if (genType == typeof (ConcurrentQueue<>))
colType = CollectionConcurrentQueue;
else
colType = CollectionCustom;
}
Expand Down Expand Up @@ -1151,6 +1156,8 @@ public static void WriteCollection(ICollection val, BinaryWriter ctx, byte colTy
res = new SortedSet<object>();
else if (colType == CollectionConcurrentBag)
res = new ConcurrentBag<object>();
else if (colType == CollectionConcurrentQueue)
res = new ConcurrentQueue<object>();
else
res = new ArrayList(len);
}
Expand Down