Thread: make use of csbl to make the code more readable and to ensure that it interact well with the std.

[SVN r86504]