Click here to Skip to main content
15,924,196 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: project Pin
sakota16-Dec-03 12:32
sakota16-Dec-03 12:32 
GeneralRe: project Pin
Christian Graus16-Dec-03 12:48
protectorChristian Graus16-Dec-03 12:48 
GeneralRe: project Pin
Jörgen Sigvardsson15-Dec-03 10:12
Jörgen Sigvardsson15-Dec-03 10:12 
GeneralRe: project Pin
Christian Graus15-Dec-03 10:15
protectorChristian Graus15-Dec-03 10:15 
GeneralRe: project Pin
Bob Stanneveld15-Dec-03 21:31
Bob Stanneveld15-Dec-03 21:31 
GeneralUsing the string class within other classes Pin
dolus15-Dec-03 8:34
dolus15-Dec-03 8:34 
GeneralRe: Using the string class within other classes Pin
Christian Graus15-Dec-03 8:48
protectorChristian Graus15-Dec-03 8:48 
Generalhummm....... thread question Pin
Alan Kozlay15-Dec-03 8:03
Alan Kozlay15-Dec-03 8:03 
If I hava a class which has handle to a Mutex object as a static member such as:

class sharedClass{
public:
void accessSomeResource();
private:
someResourceType someResource;
static HANDLE hMutex;
}


...and I have mutliple threads instantiate there own sharedClass object.
Clearly, access to the resource is protected but what about the handle itself? Each thread will have access to the same static hMutex in an unsynchronized way.

The handle is not overwritten anyware. I'm only using it in the sycnchronization calls but could this be a problem??

-Alan
GeneralRe: hummm....... thread question Pin
Alexander M.,16-Dec-03 8:59
Alexander M.,16-Dec-03 8:59 
Generalincluding 2 user defined header files Pin
Mr. Cully15-Dec-03 7:59
Mr. Cully15-Dec-03 7:59 
GeneralRe: including 2 user defined header files Pin
Christian Graus15-Dec-03 8:50
protectorChristian Graus15-Dec-03 8:50 
GeneralRe: including 2 user defined header files Pin
John M. Drescher15-Dec-03 9:28
John M. Drescher15-Dec-03 9:28 
GeneralRe: including 2 user defined header files Pin
Anonymous15-Dec-03 17:34
Anonymous15-Dec-03 17:34 
Generalxp style button in MessageBox. Pin
bin892215-Dec-03 7:42
bin892215-Dec-03 7:42 
GeneralRemove the Restore Down Button from a MDI Pin
RobJones15-Dec-03 6:54
RobJones15-Dec-03 6:54 
Generalregarding map in C++ Pin
karteek15-Dec-03 6:29
karteek15-Dec-03 6:29 
GeneralRe: regarding map in C++ Pin
John M. Drescher15-Dec-03 6:38
John M. Drescher15-Dec-03 6:38 
GeneralRe: regarding map in C++ Pin
karteek15-Dec-03 6:44
karteek15-Dec-03 6:44 
GeneralRe: regarding map in C++ Pin
John M. Drescher15-Dec-03 7:14
John M. Drescher15-Dec-03 7:14 
GeneralRe: regarding map in C++ Pin
David Crow15-Dec-03 6:41
David Crow15-Dec-03 6:41 
GeneralRe: regarding map in C++ Pin
Jörgen Sigvardsson15-Dec-03 10:15
Jörgen Sigvardsson15-Dec-03 10:15 
GeneralOutlook Events - Last -Contact remove does not fire Pin
derzellner15-Dec-03 5:21
derzellner15-Dec-03 5:21 
GeneralRe: Outlook Events - Last -Contact remove does not fire Pin
l a u r e n15-Dec-03 11:45
l a u r e n15-Dec-03 11:45 
GeneralRe: Outlook Events - Last -Contact remove does not fire Pin
derzellner15-Dec-03 21:06
derzellner15-Dec-03 21:06 
GeneralMFC/C++ caption change SetWindowText() Pin
frexxx15-Dec-03 4:49
frexxx15-Dec-03 4:49 

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.