New commits:
http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=859604cc88ec4526757c13e8fb0d0e63634fa384
commit 859604cc88ec4526757c13e8fb0d0e63634fa384
Author: Denis Oliver Kropp <[email protected]>
Date: Tue Mar 5 21:05:44 2013 +0100
libdirect: Add String::CopyTLS(), D_String_CopyTLS() and
D_String_PrintTLS().
CopyTLS allocates a slot in a thread local ring buffer of strings (char*),
copies the data and returns the pointer. This allows destruction of the
String object with subsequent code using the data only.
This is mainly meant for debugging purpose, so a ring buffer of up to 32
strings
was chosen that allows up to 32 such formatting prints as arguments to a
debug
function like D_DEBUG_AT.
lib/direct/String.cpp | 94 +++++++++++++++++++++++++++++++++++++++++++++++--
lib/direct/String.h | 43 +++++++++++++++++++---
2 files changed, 130 insertions(+), 7 deletions(-)
_______________________________________________
directfb-cvs mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-cvs