Branches
Comments
[»]
Won't Compile
by Michael Jennings (KainX) - Dec 26th 2004 20:09:47
In file included from vanilla/SimpleAtomicCount.cxx:25,
from AtomicCount.cxx:50:
../include/zthread/Guard.h: In destructor `ZThread::Guard<LockType,
LockingPolicy>::~Guard()':
../include/zthread/Guard.h:493: error: there are no arguments to
`isDisabled' that depend on a template parameter, so a declaration of
`isDisabled' must be available
../include/zthread/Guard.h:493: error: (if you use `-fpermissive', G++
will accept your code, but allowing the use of an undeclared name is
deprecated)
[reply]
[top]
[»]
Re: Won't Compile
by shlomoa - Sep 3rd 2006 07:20:43
> In file included from
> vanilla/SimpleAtomicCount.cxx:25,
> from
> AtomicCount.cxx:50:
> ../include/zthread/Guard.h: In
> destructor `ZThread::Guard<LockType,
> LockingPolicy>::~Guard()':
> ../include/zthread/Guard.h:493: error:
> there are no arguments to `isDisabled'
> that depend on a template parameter, so
> a declaration of `isDisabled' must be
> available
> ../include/zthread/Guard.h:493: error:
> (if you use `-fpermissive', G++ will
> accept your code, but allowing the use
> of an undeclared name is deprecated)
>
New g++ requires strict definition, this function is considered anonymous
since the one intended is inherited.
What you should do is replace:
isDisabled()
With
LockHolder<LockType>::isDisabled()
[reply]
[top]
[»]
Re: Won't Compile
by Michael Jennings (KainX) - Sep 5th 2006 11:16:53
>
> New g++ requires strict definition, this
> function is considered anonymous since
> the one intended is inherited.
> What you should do is replace:
> isDisabled()
> With
> LockHolder<LockType>::isDisabled()
Given that the last release was in 2003, I'm not holding my breath for an
update.... ;-)
[reply]
[top]
[»]
Re: Won't Compile
by squawking - Aug 3rd 2007 03:19:45
See diffs required here:
http://aur.archlinux.org/packages/zthread/zthread/zthread-gcc4.patch
I've done them and it compiles fine on g++ 3.4.6
Is ZThreads really dead? I'm trying to contact the author to find out.
Thinking in cpp has a good introduction to the library.
http://bruce-eckel.developpez.com/livres/cpp/ticpp/v2/?page=page_14#L3.4.2.1
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html
I'm going to give ZThreads a good work out as I need a thread library for
a commercial project and don't want to write my own again. Be interested
in other people's experiences.
[reply]
[top]
[»]
Suggestions
by Eric Crahen - Apr 13th 2001 07:02:14
I'm always open to suggestions if you have extensions or ideas for
improvement
-- http://www.code-foo.com/
[reply]
[top]
[»]
Re: Suggestions
by Teemu Voipio - Sep 29th 2002 05:26:43
> I'm always open to suggestions if you
> have extensions or ideas for improvement
Would it be possible to get this interruption method into Boost::Threads ?
It lacks ANY way of thread cancellation, but is otherwise quite well known
and elegant. Boost might be a good way to get something like this to the
c++ standard eventually too, which might make it truly portable some day.
-- -teemu
[reply]
[top]
[»]
Re: Suggestions
by Eric Crahen - Sep 29th 2002 07:33:26
> Would it be possible to get this
> interruption method into Boost::Threads
> ? It lacks ANY way of thread
> cancellation, but is otherwise quite
> well known and elegant. Boost might be a
> good way to get something like this to
> the c++ standard eventually too, which
> might make it truly portable some day.
I think this is probably a good idea too. I would need help convincing
Boost though.
-- http://www.code-foo.com/
[reply]
[top]
|