# Dl/import is not thread safe

**URL:** <https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463>\
**Category:** Development\
**Created:** [March 11, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463 "2007-03-11T15:40:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sheepman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Post date:** [March 11, 2007, 3:40pm UTC](https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463/1 "2007-03-11T15:40:52Z")

</div>

e$B$3$s$P$s$O!"e(Bsheepman e$B$G$9!#e(B

e$B$[$H$s$ILdBj$K$J$k\>l9g$O$J$$$H;W$&$N$G$9$,!"e(B  
dl/import e$B$N0J2\<$NItJ,$,%9%l%C%I0BA4$G$O$J$$$N$G!"e(B  
e$B%Q%C%A$rE:IU$7$^$9!#e(B

@retval e$B$,JV$5$l$kA0$K!“JL$N%9%l%C%I$Ge(B @retval e$B$NCM$re(B  
e$BJQ$($i$l$k2DG=@-$,$”$k$H;W$$$^$9!#e(B

# $ svn diff ext/dl/lib/dl/import.rb Index: ext/dl/lib/dl/import.rb

— ext/dl/lib/dl/import.rb (revision 12023)  
+++ ext/dl/lib/dl/import.rb (working copy)  
@@ -87,7 +87,7 @@  
" rs = dec.call(rs) if (dec && rs)",  
" @retval = r",  
" @args = rs",

- 

```
    " @retval",

```

- 

```
    " r",
    "}",
  ].join("\n"))

```

@@ -169,7 +169,7 @@  
" rs = dec.call(rs) if dec",  
" @retval = r",  
" @args = rs",

- 

```
    " return @retval",

```

- 

```
    " return r",
    "end",
    "module_function :#{mname}",
  ].join("\n")
```

---

<div class="post-metadata">

**Author:** ![sheepman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@sheepman](https://www.ruby-forum.com/u/sheepman)\
**Post date:** [March 11, 2007, 5:11pm UTC](https://www.ruby-forum.com/t/dl-import-is-not-thread-safe/88463/2 "2007-03-11T17:11:01Z")

</div>

At Sun, 11 Mar 2007 23:39:59 +0900,  
sheepman wrote:

> ã»ã¨ã‚“ã©å•é¡Œã«ãªã‚‹å ´åˆã¯ãªã„ã¨æ€ã†ã®ã§ã™ãŒã€  
> dl/import ã®ä»¥ä¸‹ã®éƒ¨åˆ†ãŒã‚¹ãƒ¬ãƒƒãƒ‰å®‰å…¨ã§ã¯ãªã„ã®ã§ã€  
> ãƒ‘ãƒƒãƒã‚’æ·»ä»˜ã—ã¾ã™ã€‚
> 
> @retval ãŒè¿”ã•ã‚Œã‚‹å‰ã«ã€åˆ¥ã®ã‚¹ãƒ¬ãƒƒãƒ‰ã§ @retval ã®å€¤ã‚’  
> å¤‰ãˆã‚‰ã‚Œã‚‹å¯èƒ½æ€§ãŒã‚ã‚‹ã¨æ€ã„ã¾ã™ã€‚

ã€€ã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã™ã€‚å–ã‚Šè¾¼ã¿ã¾ã—ãŸã€‚

–  
/  
/\_\_ \_\_ [Akinori.org](http://Akinori.org) / [MUSHA.org](http://MUSHA.org)  
/ ) ) ) ) / [FreeBSD.org](http://FreeBSD.org) / [Ruby-lang.org](http://Ruby-lang.org)  
Akinori MUSHA aka / (\_ / ( (\_\_( @ [iDaemons.org](http://iDaemons.org) / and.or.jp

“Different eyes see different things,  
Different hearts beat on different strings –  
But there are times for you and me when all such things agree”
