Re: problem compiling KDar with libdar CVS

Denis Corbin <[email protected]> Sun, 07 Nov 2004 12:18:08 +0100
Newsgroups gmane.comp.sysutils.backup.dar.libdar
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johnathan Burchill wrote:
| Hi Denis,

Hello Johnathan,

|
| On Wednesday 03 November 2004 13:08, Denis Corbin wrote:
|
|>Denis Corbin wrote:
|>|[...]
|>| I proposes the following API :
|>|
|>| ~    void cancel_thread(pthread_t tid);
|>| ~    bool cancel_current(pthread_t & tid);
|>| ~    void cancel_clear();
|>|
|>| where cancel_thread() is used to cancel the given thread. Which will
|>| make libdar throw a Euser_abort exception, cleanly free memory and
|>| release any mutex.
|>|
|>| cancel_current() return true and the tid of the thread that will be
|>| canceled when execution will reach the next checkpoint, false if there
|>| is not pending cancelation.
|>|
|>| cancel_clear() abort cancelation process if the thread has not already
|>| terminated.
|>|
|>| Only one thread can be canceled at a time.
|>|
|>|
|>|[...]
|>
|>Hello,
|>
|>[...]
|
|
| I've got KDar running on libdar API V3.0.0, CVS. Works great!
| The thread cancelation works perfectly, my limited testing shows.
| The response is very snappy, and the user does not have to wait or
restart
| the program to stop an operation anymore. I think that you have a good
| implementation of thread cancelation. Quite elegant.

Thanks for the compliment :-) However I must check that the execution
speed is not too lowered by the simple but much frequent check done to
detect thread cancelation requests.

|
| One point about libdar's "make install": the config.h header that gets
put
| into <installdir>/include/dar/ does not contain "#define MUTEX_WORKS 1"
| when I configure libdar with pthreads, so I have to add it manually to
get
| KDar to compile.

OK, I will fix that. Thanks for feedback.

|
| [...]
|
| Cheers,
| JB
|

Cheers,
Denis.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBjgRvpC5CI8gYGlIRAmzaAJ98wVAgXkOHSSfbIZi0jcXmi+4ikQCgr++D
hCA1/6UqrHaFE8+vywcbO74=
=HMOb
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click