From 7fca0c86491500bcdb659d79c358e37f46c8de0b Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Wed, 1 Jun 2005 20:42:50 +0000 Subject: [PATCH] test strings in a multithreaded environment git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7242 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- .../test-suite/csharp/threads_runme.cs | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 SWIG/Examples/test-suite/csharp/threads_runme.cs diff --git a/SWIG/Examples/test-suite/csharp/threads_runme.cs b/SWIG/Examples/test-suite/csharp/threads_runme.cs new file mode 100644 index 000000000..fa901990c --- /dev/null +++ b/SWIG/Examples/test-suite/csharp/threads_runme.cs @@ -0,0 +1,61 @@ +using System; +using System.Threading; +using threadsNamespace; + +public class runme +{ + static void Main() + { + Kerfuffle kerf = new Kerfuffle(); + const int NUM_THREADS = 8; + Thread[] threads = new Thread[NUM_THREADS]; + TestThread[] testThreads = new TestThread[NUM_THREADS]; + // invoke the threads + for (int i=0; i