> but I was asking for the code snipped which accesses TLS variable - if all
> threads share the same scheduler why has it to be stored in TLS?
> a slight modification of my example above - replace
> retrn_ptr_of_scheduler_thread_lcoal_var() by return_ptr_to_active_fiber()
> I assume that as you mentioned in b) that the active fiber is stored in
> TLS - the exmaple code prints out the address of the current active fiber
> how does the code look like after compiler optimization?
I don't know. We have never ran into any problems related to this.