From: Alexey Tourbin <at@turbinal.org>
To: devel@altlinux.ru
Subject: [devel] Re: perl-5.8.0-alt0.3 (important)
Date: Tue, 22 Oct 2002 17:08:49 +0400
Message-ID: <20021022130849.GA2737@ungrund> (raw)
In-Reply-To: <20021022062611.6AFC22B515@mail.ru.echo.fr>
On Tue, Oct 22, 2002 at 10:25:07AM +0400, Anton V. Boyarshinov wrote:
> In general, unless a module has been specifically vetted as
> thread safe it cannot be used in a threaded program. Most pure
> Perl modules should be thread safe but most XS modules are not.
> This goes for core modules too!
"Most XS modules are not" означает, что эти модули нельзя использовать в
перловой программе, которая непосредственно использует треды; точнее,
эти модули нельзя использовать в распаралеленном коде, т.к. в них могут
использоваться статические буферы и т.п. Это и есть thread-unsafe.
use threads;
for $n (1..10) {
async {
# здесь работать не будет
XSLibrary->static_function($n);
}
}
Это, однако, не значит, что эти модули вообще не будут работать, если
перл собран с поддержкой тредов.
next prev parent reply other threads:[~2002-10-22 13:08 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 1:45 [devel] " at
2002-10-16 4:44 ` at
2002-10-16 8:54 ` Dmitry V. Levin
2002-10-16 14:47 ` at
2002-10-16 15:31 ` Dmitry V. Levin
2002-10-16 8:39 ` Alexander Bokovoy
2002-10-16 9:09 ` Stanislav Ievlev
2002-10-16 8:50 ` Dmitry V. Levin
2002-10-16 8:56 ` Anton V. Boyarshinov
2002-10-16 14:19 ` at
2002-10-17 8:14 ` [devel] " Mikhail Zabaluev
2002-10-18 1:40 ` at
2002-10-18 22:26 ` Mikhail Zabaluev
2002-10-18 23:42 ` at
2002-10-19 9:38 ` Mikhail Zabaluev
2002-10-19 20:45 ` [devel] Re: perl ABI detection at find-requires stage at
2002-10-20 0:06 ` at
2002-10-21 23:05 ` Mikhail Zabaluev
2002-10-21 6:00 ` [devel] Re: perl-5.8.0-alt0.3 (important) Anton V. Boyarshinov
2002-10-21 19:26 ` Alexey I. Froloff
2002-10-22 8:20 ` Dmitry V. Levin
2002-10-21 20:16 ` [devel] Re: perl inc_version_list at
2002-10-21 22:52 ` [devel] Re: perl-5.8.0-alt0.3 (important) Mikhail Zabaluev
2002-10-22 6:25 ` Anton V. Boyarshinov
2002-10-22 13:08 ` Alexey Tourbin [this message]
2002-10-26 0:32 ` [devel] Re: perl thread safety at
2002-10-20 1:37 ` [devel] Re: perl/Junior at
2002-10-20 13:37 ` [devel] Re: perl-5.8.0-alt0.3 (important) Michael Shigorin
2002-10-21 2:12 ` at
2002-10-21 22:50 ` Mikhail Zabaluev
2002-10-21 3:01 ` at
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021022130849.GA2737@ungrund \
--to=at@turbinal.org \
--cc=devel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git