It is declared static within the function so no other function can use it. It looks like it is just protecting access to the Ethernet peripheral to make it thread safe.
Thanks for the quick response.
I am still confused - Since this is the only place where this is being used any other thread can still access it if it does not know that this is protected by this semaphore?
Or is there something more to it that I need to read about.
Thanks again