Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5785

How to create a new thread from inside Rhino/GH?

$
0
0

@ivelin.peychev wrote:

This is when the said process will invoke thread lock and respectively crash Rhino.

How can I avoid this crash?

UPDATE:
How would this:

using System.Threading;
new Thread(() => 
{
    Thread.CurrentThread.IsBackground = true; 
    /* run your code here */ 
    Console.WriteLine("Hello, world"); 
}).Start();

look like in IronPython? :thinking:
I’m particularly confused with the lambda operator there.

Posts: 18

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5785

Trending Articles