Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

Dave

Member Since 08 Aug 2010
Offline Last Active Jun 27 2011 06:05 PM
-----

#2210 Netduino Tutorial - Multithreading (Methods with Parameters)

Posted by Dave on 13 September 2010 - 06:26 AM

Actually since you're not using the value returned you could do something like this, and do it all in one line of code....

       public void Pulse(int onTime, int offTime, bool onFirst, uint repeat)
        {
            new Thread(() => doWork(onTime, offTime, onFirst, repeat).Start();
        }

--Dave


home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.