Click here to Skip to main content
16,015,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralNetmessagebuffersend(): this is strange! Pin
Jörg Anslik4-Apr-02 21:42
Jörg Anslik4-Apr-02 21:42 
GeneralDirectShow StillCap problem Pin
Ruzicka4-Apr-02 21:37
Ruzicka4-Apr-02 21:37 
Generalbasic_string Pin
Niklas L4-Apr-02 21:37
Niklas L4-Apr-02 21:37 
GeneralRe: basic_string Pin
Niklas L4-Apr-02 21:39
Niklas L4-Apr-02 21:39 
GeneralRe: basic_string Pin
Joaquín M López Muñoz4-Apr-02 22:32
Joaquín M López Muñoz4-Apr-02 22:32 
GeneralRe: basic_string Pin
Joao Vaz4-Apr-02 23:49
Joao Vaz4-Apr-02 23:49 
GeneralRe: basic_string Pin
Tim Smith5-Apr-02 3:48
Tim Smith5-Apr-02 3:48 
GeneralRe: basic_string Pin
Joao Vaz5-Apr-02 4:56
Joao Vaz5-Apr-02 4:56 
WARNING: LONG RANT HERE TOO Smile | :)
Tim Smith wrote:
I hope they never introduce thread safety in the core STL objects such as vector. In my experience, my thread safety requirements extend far beyond just a single instance of a map or vector. Thus, having private locking for these objects does little good.

Hum, you perhaps misinterpreted what I said, I will try to better explain this:

If you readed Modern C++ Design , the 1st chapter deals with the concept of policy classes, this concept is seemed with the strategy pattern, for instance
the policy class :

//Normal STL impl. Thread Read Safe only
template<class ThreadModel = ThreadSafeRead>
class CThreadingModel
{
  lock();
  ...
}


The vector instead of :

template <class Type,class Allocator = allocator<Type>> class Vector; 


would be:

template <
  class Type,
  class Allocator = allocator<Type> 
  class ThreadModelSafety=CThreadingModel
>


Transparent, by default the normal STL behaviour, explicity full MT semantics or other hybrid thread model

Of course this lead to problems mixing classes with different thread models, but hey this is just a thought Smile | :) , besides it's a normal problem when mixing classes with different strategies ...


Tim Smith wrote:
I don't agree with the idea that standard equates to portable. I have had enough years implementing standards to know that there is a huge gap between the ideal standard and that implemented standard.

Of course is a very difficult task, not impossible ... but even so I liked the threading option to be added to the c++ core, not only the stl .


Tim Smith wrote:
If feel that people can still get the portability they need from well supported and designed initiatives like BOOST

A very nice initiative indeed Smile | :)


Tim Smith wrote:
. If condition variables get added to the standard, MS isn't going to suddenly decide to add a CV primitive to the XP, W2K, NT4, ME, and 9x.

Hey Tim, I'm not talking about CVS here , I known that you're still shaken by the not in the very past long arguments held here at CP Wink | ;)
But I'll warning you after I'm finally conclude my ICMP protocol article with c# , I'll write a article with a portable thread pool implementation, and suprise, it will have CVs, so I'm expect to be badly beaten by you respecting this and the possible quirks that it may have Laugh | :laugh:


Tim Smith wrote:
If a solution is already portable, why does it suddenly become even more portable when it has the stamp of the standard?

Not more portable, only more standard Smile | :)

Cheers,



Joao Vaz
GeneralRe: basic_string Pin
Joaquín M López Muñoz5-Apr-02 5:40
Joaquín M López Muñoz5-Apr-02 5:40 
GeneralRe: basic_string Pin
Joao Vaz5-Apr-02 6:03
Joao Vaz5-Apr-02 6:03 
GeneralRe: basic_string Pin
Niklas L5-Apr-02 1:12
Niklas L5-Apr-02 1:12 
GeneralPLEASE HELP ME Pin
cycosi4-Apr-02 21:12
cycosi4-Apr-02 21:12 
GeneralRe: PLEASE HELP ME Pin
Mazdak4-Apr-02 21:27
Mazdak4-Apr-02 21:27 
GeneralRe: PLEASE HELP ME Pin
Christian Graus4-Apr-02 21:37
protectorChristian Graus4-Apr-02 21:37 
GeneralRe: PLEASE HELP ME Pin
cycosi4-Apr-02 22:41
cycosi4-Apr-02 22:41 
GeneralRe: PLEASE HELP ME Pin
Christian Graus4-Apr-02 22:58
protectorChristian Graus4-Apr-02 22:58 
GeneralRe: PLEASE HELP ME Pin
Tomasz Sowinski5-Apr-02 6:02
Tomasz Sowinski5-Apr-02 6:02 
GeneralVery Basic Question. Pin
Mazdak4-Apr-02 20:14
Mazdak4-Apr-02 20:14 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 20:28
Joaquín M López Muñoz4-Apr-02 20:28 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 20:34
Mazdak4-Apr-02 20:34 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 20:44
Joaquín M López Muñoz4-Apr-02 20:44 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 20:54
Mazdak4-Apr-02 20:54 
GeneralRe: Very Basic Question. Pin
Joaquín M López Muñoz4-Apr-02 21:08
Joaquín M López Muñoz4-Apr-02 21:08 
GeneralRe: Very Basic Question. Pin
Mazdak4-Apr-02 21:24
Mazdak4-Apr-02 21:24 
GeneralRe: Very Basic Question. Pin
Niklas L4-Apr-02 21:08
Niklas L4-Apr-02 21:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.