![]() |
| ||
| Shared Memory Object Access Hi iam a newbie to C++ I have a problem, pls give me a solution I have an object in the shared memory which encapsulates an array of 6 objects. I want to acess one of the objects in the array. If the first object in the array is already locked by a process, i want to get the second object and so on. Please tell me how to do this and please let me know, how to check whether an object in the array is already locked by some process or it is free to access? Thanks in Advance Vadan |
| ||
| Re: Shared Memory Object Access This is a problem aout "Communication among process". You can solve it by using "singal, mutex,memory share ect" |
| ||
| Re: Shared Memory Object Access Quote:
|
| ||
| Re: Shared Memory Object Access thanks for the replies i want to know how to check whether an object is being locked by a process or not |
| ||
| Re: Shared Memory Object Access That depends on your OS in C++. C++ itself doesn't have functions for that. Maybe some library does have crossplatform functions for it. If you're on Windows, go to MSDN and lookup the threading functions there. |
| All times are GMT -4. The time now is 11:37 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC