$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Darin Adler (darin_at_[hidden])
Date: 2001-10-11 10:07:50
on 10/11/01 8:04 AM, helmut.zeisel_at_[hidden] at helmut.zeisel_at_[hidden] wrote:
> As I understand, this might be a real problem:
>
> A pointer to a function is needed as thread specific data,
> pthreads assumes that all data can be casted to void*,
> and ISO C++ forbids casting between pointer-to-function and
> pointer-to-object :-(
The conventional solution to this is to create a object containing the
pointer to the function, and using a pointer to that as the thread-specific
data. The only issue then making sure that the object is deleted.
-- Darin