~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to base/task.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-11-17 19:32:52 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20131117193252-tkrpclguqqebqa35
Tags: 0.2.0+dfsg-3
testsuite-i386.patch: loosen the numerical precision for yet another test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    tls = task_local_storage()
25
25
    hadkey = haskey(tls,key)
26
26
    old = get(tls,key,nothing)
 
27
    tls[key] = val
27
28
    try body()
28
29
    finally
29
30
        hadkey ? (tls[key] = old) : delete!(tls,key)