Multiple Thread Style Guide

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

Moderators: tfAteba, barthess, RoccoMarco, lbednarz, utzig

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: 14535
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1097 times
Been thanked: 934 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 5 guests