#378 Add ThreadLocal concept

None
open
nobody
none
5
2012-08-22
2009-09-28
No

Sometimes it would be extremely helpful, if the concept of ThreadLocal variables was available for Rexx threads (e.g. like Java). This would allow to store and fetch variable values which have the same name but distinct values in each Rexx thread.

Discussion

  • Maybe one idea that could fit ooRexx concept here, would be to define an environment symbol named

    .threadLocal

    which denotes a directory object that then could be used from within a Rexx thread to store or retrieve thread local values.

    [This way we would have .environment for values available to all Rexx instances, .local for values available to a single Rexx instance, and .threadLocal for values available to a single Rexx thread.]

     


Anonymous


Cancel   Add attachments