As has already been mentioned, you can whatever you want with as many threads as you want. It is up to you to manage them and how they interface with whatever you interface.
My VFD Modbus component is a user hal component that spawns a thread to do the USB rs485 comms. I have to manage how my thread communicates with hal. However, if you have a requirement that has "a very certain predetermined thread cycle time" it sounds like you should be writing a real time hal component - either your own component or a comp component. The hal real time is as precise as you are going to get on linux. Non-realtime threads are non-deterministic, so you have no guarantees of the 1us timing. > -----Original Message----- > From: Marius Liebenberg [mailto:[email protected]] > Sent: Friday, 16 May 2014 9:30 PM > To: EMC developers > Subject: [Emc-developers] Custom thread for component > > Hi > I am busy with a generic i2c component. I2c has some timing related features > and I thought that it would make sense to load the component in a thread > that has a very certain predetermined thread cycle time. This way it would be > very easy to impliment timeing related features. Is it OK to load one's own > thread or is the practise not advised. > P.S. I am testing the code now in a very much slow downed thread in order > for me to see what happens in Halscope. The production thread could have a > time of 1us. > > Any thoughts? > > -- > > Regards /Groete > > Marius D. Liebenberg > +27 82 698 3251 > +27 12 743 6064 > QQ 1767394877 > > > ---------------------------------------------------------------------------- -- > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Emc-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-developers ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
