Multiple Thread Style Guide

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, utzig, tfAteba, barthess

logan54
Posts: 22
Joined: Tue Apr 01, 2014 5:59 am
Location: Austria

Multiple Thread Style Guide

Postby logan54 » Sun Sep 21, 2014 12:56 pm

Hello,

I want to program a empty stack counter in the IDLE Thread, therefore It would be convenient to store all threads/or thread working areas in a kind of array, that I can loop through. Is there a style guide to achive this easily ?

regards,

logan54

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: Multiple Thread Style Guide

Postby Giovanni » Sun Sep 21, 2014 1:00 pm

You can use the "registry" in order to scan all threads, no need to do that. Look at any shell demo, there is a "thread" command scanning the registry.

Giovanni

logan54
Posts: 22
Joined: Tue Apr 01, 2014 5:59 am
Location: Austria

Re: Multiple Thread Style Guide

Postby logan54 » Sun Sep 21, 2014 2:39 pm

Hello,

many thanks,
I've solved my issue

regards,

logan54


Return to “General Support”

Who is online

Users browsing this forum: No registered users and 19 guests