Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1337 connectés 

  FORUM HardWare.fr
  Programmation

  [VC++] pb de comprehension

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[VC++] pb de comprehension

n°147086
try58
Posté le 29-05-2002 à 16:10:34  profilanswer
 

Je lis un paragraphe depuis tout a l'heure dans la MSDN :
 
Performance data collection can create and trigger a user-defined event. One example of when you may want this to happen is when sampling real-time data at regular intervals. Use the PdhCollectQueryDataEx function to do this. The process of calling PdhCollectQueryDataEx is the following:  
 
-Create an event by calling the CreateEvent function.  
-Pass the event handle into the call to PdhCollectQueryDataEx.  
 
PdhCollectQueryDataEx will return immediately and create a timing thread. This timing thread will wait the specified interval of time and then collect a sample of performance data and set the event. When set, this event signals the main thread that performance data is available.

 
Mon pb est que je ne sais pas comment le timing thread fait pour signaler au main thread qu'il a bien recuperer les valeurs. Pourriez vous m'aider ?  :cry:

mood
Publicité
Posté le 29-05-2002 à 16:10:34  profilanswer
 

n°147136
antsite
Je me souviens
Posté le 29-05-2002 à 16:40:19  profilanswer
 

Ben comme c'est écrit, c'est lorsque que l'event est set. Documentes toi sur les events, ça t'aidera je pense. Codeguru je crois propose un bon tutorial sur les threads.

n°147505
try58
Posté le 30-05-2002 à 08:51:25  profilanswer
 

ok ben je vais regarder ca, merci!


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [VC++] pb de comprehension

 

Sujets relatifs
Plus de sujets relatifs à : [VC++] pb de comprehension


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR