Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 Final
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:

      All

      Description

      I have only one FunctionLibrary which is shared between all thread of my application.
      When I execute the getFunction method for the first time, the cache is prepared. But if many thread access the function for first time during the cache creation, there is a problem because the byNamespace variable is not null but still empty.
      The first solution would be to synchronize the getFunction method or to add a synchronized block around the prepare cache method call.

      What do you think about that ?

      Regards,

        Activity

        Cédric Opfermann created issue -
        Matt Benson made changes -
        Field Original Value New Value
        Summary Multithreading issue FunctionLibrary Multithreading issue
        Hide
        Matt Benson added a comment -

        Committed revision 1133155.

        Show
        Matt Benson added a comment - Committed revision 1133155.
        Matt Benson made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        540d 9h 47m 1 Matt Benson 07/Jun/11 21:49

          People

          • Assignee:
            Unassigned
            Reporter:
            Cédric Opfermann
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1h
              1h
              Remaining:
              Remaining Estimate - 1h
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development