[sldev] Standardizable classes
Phoenix
phoenix at secondlife.com
Wed Jun 27 09:14:12 PDT 2007
On 2007 Jun 26, at 21:28, Alan Grimes wrote:
> Here's a brief list of classes in llcommon which are covered in posix
> standards...
>
> llDate -- Posix standard, probably on all reasonable platforms, see
> time.h
time.h is a set of c functions, and we wanted a class to represent a
point in time.
> Wchar support is now part of C99.
...and different widths on different platforms. We use wchar for
strings and llwchar where we want a fixed width wide character.
> ifstream/ofstream ???? uh, why?? -- classic part of C++
do you mean llifstream and llofstream? Windows does not handle
international character sets correctly with the standard c++ file
streams. For example, we could not load your user settings if there
was a non-us-ascii character in the path to your user directory.
> LLThread -- Provided by SDL which is already a dependency.. Not
> sure why we're using APR... (Apache Runtime Library)
> -- A better approach might be to #define the thread object as whatever
> the host library uses and the classic synchronization functions, this
> makes the thread calls much thinner and therefore, hopefully,
> faster, it
> also allows portability...
We only link to the SDL when building the client in linux. The APR
library provides a reasonable cross-platform thread representation
which supports more platforms and is less time consuming to update
than the boost library. Threads predate the linux client and are in
many places besides the linux client. If there is some compelling
reason to specialize LLThread for linux based on SDL the project will
be considered.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20070627/72b95027/PGP.pgp
More information about the SLDev
mailing list