[Box Backup-dev] Re: [Box Backup] Win32 port
Martin Ebourne
boxbackup-dev@fluffy.co.uk
Tue, 06 Dec 2005 10:22:34 +0000
Ben Summers <ben@fluffy.co.uk> wrote:
> In general, we should avoid using threads. It's a bit of a nightmare
> on many UNIX platforms, especially when you have C++ in the mix.
> (although this may have changed.) I personally would make sure that
> my UNIX daemons forked rather than used threads just to avoid any
> potential portability hassles.
>
> So if others agree this is a fair strategy, then threading is only
> there for Win32. So no need to abstract it.
I feel this is unnecessarily restrictive. On platforms with pthreads
(which is most now), they're perfectly alright. While I don't think we
should make box require threads for normal operation, it seems entirely
reasonable to make use of them if it can provide enhanced functionality
on platforms that support them.
Cheers,
Martin.