For Programmers: Free Programming Magazines  


Home > Archive > C > February 2006 > pthread_mutex_lock.c:78









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author pthread_mutex_lock.c:78
highstatesmanship

2006-02-27, 3:57 am

//Code sample

pthread_mutex_lock(&AskBidMgmt_Mutex[stockSymbolIndex %
cMaxBidMinAskMutexNum]);

//Call inetBidCrossTradeMgmt
inetBidCrossTradeMgmt();

pthread_mutex_unlock(&AskBidMgmt_Mutex[stockSymbolIndex %
cMaxBidMinAskMutexNum]);

pthread_mutex_lock(&AskBidMgmt_Mutex[stockSymbolIndex %
cMaxBidMinAskMutexNum]);

//Call GeneralInsert
int r = GeneralInsert();

pthread_mutex_unlock(&AskBidMgmt_Mutex[stockSymbolIndex %
cMaxBidMinAskMutexNum]);

//...

Vladimir S. Oka

2006-02-27, 3:57 am

highstatesmanship wrote:

> //Code sample


<snip meaningless, and non-standard C code example>

So, you not only enjoy posting error messages, without any question or
explanation whatsoever. Now it's the code as well, and it's not even
barely Standard C.

I don't think mind-readers regularly hang out in comp.* newsgroups.

--
BR, Vladimir

Calm down, it's *only* ones and zeroes.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com