Hi Forum,
I am trying to use CException library in Chibi OS application to implement the " try, throw and catch " pattern. Have anyone tried this? The library seems to be compact and offers multithreading support as well. Is there a reason why we are not using it in Chibi OS? Are ``setjmp`` and ``longjmp`` prohibited in ChibiOS?
Regards,
Akshai
CException in ChibiOS
- Giovanni
- Site Admin
- Posts: 14461
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1077 times
- Been thanked: 922 times
- Contact:
Re: CException in ChibiOS
Hi,
It should be possible but do not mix setjmp and longjmp between threads or things will get complex. Also, do not jump in and out of critical sections and ISRs. Only do that in the same "context".
Giovanni
It should be possible but do not mix setjmp and longjmp between threads or things will get complex. Also, do not jump in and out of critical sections and ISRs. Only do that in the same "context".
Giovanni
Return to “Development and Feedback”
Who is online
Users browsing this forum: No registered users and 8 guests