IronPython doesn't have "its own" threads; it runs on whatever thread it's called on.
The .NET Thread class has methods Suspend ( http://msdn.microsoft.com/en-us/library/system.threading.thread.suspend.aspx) and Resume ( http://msdn.microsoft.com/en-us/library/system.threading.thread.resume.aspx). These are deprecated and dangerous and all-around a bad idea. If you give a little more detail about what you're trying to accomplish, perhaps someone can suggest an alternative approach. On Sun, Mar 7, 2010 at 9:55 PM, Idan Zaltzberg <[email protected]> wrote: > Hi, > > I would like to write a code the suspends all "other" threads, does > something and then resumes them. Similar to what the GC does when its > running (only I don’t do it for garbage collection). > > Obviously, I want only the threads I started to suspend and not to change > the state of the interpreters threads. > > Is there a way to do this in IronPython? > > > > Thanks. > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
