[En-Nut-Discussion] API for thread name and mutex nesting?

Matthias Ringwald mringwal at inf.ethz.ch
Thu Oct 26 16:35:25 CEST 2006


Hi Przemek

On 01.10.2006, at 21:24, Przemyslaw Rudy wrote:

> Hi
>
> It looks like there is no API to identify current thread and to check
> mutex nesting level.
> What about:
>
> 1. New API function like:
> ---------------
> char *GetThreadName(void)
> ---------------
> that would return current thread name.
I think this more or less exists. or it is a simple operation.

>
> 2. changing return type of NutMutexLock() from ‘void’ to ‘int/u_short’
> and returning current (or previous) mutex internal count?
>

why do you want to now the nesing level?

m.





More information about the En-Nut-Discussion mailing list