Using Win32 functions in Visual FoxPro Image Gallery
Synchronization
..msdn
CreateEvent
CreateMutex
CreateSemaphore
CreateWaitableTimer
OpenEvent
OpenSemaphore
OpenWaitableTimer
ReleaseMutex
ReleaseSemaphore
ResetEvent
SetEvent
SetWaitableTimer
WaitForSingleObject
Code examples:
Using shared memory to exchange data between two FoxPro applications
ReleaseMutex
..msdn    Add comment     W32 Constants      Translate this page
Releases ownership of the specified mutex object.
Code examples:
Using shared memory to exchange data between two FoxPro applications
Declaration:
 
BOOL ReleaseMutex(
    HANDLE hMutex
);
 
 
FoxPro declaration:
 
DECLARE INTEGER ReleaseMutex IN kernel32;
    INTEGER hMutex
 
Parameters:
hMutex
[in] Handle to the mutex object. The CreateMutex or OpenMutex function returns this handle.
Return value:
If the function succeeds, the return value is nonzero.
My comment:
A thread obtains ownership of a mutex either by creating it with the bInitialOwner parameter set to TRUE or by specifying its handle in a call to one of the wait functions, like WaitForSingleObject.

When the thread no longer needs to own the mutex object, it calls the ReleaseMutex function so that another thread can acquire ownership.

Use the CloseHandle function to close the handle of a mutex object. The system closes the handle automatically when the process terminates. The mutex object is destroyed when its last handle has been closed.

See also: CreateMutex, CreateSemaphore.
Word Index links for the ReleaseMutex :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-10-28 12:46:17
Modified: 2005-10-28 12:49:16
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (50.17.109.248)
3 sec.Example: 'Adding user-defined items to the Control Menu of VFP form (requires VFP9)'
33.62 min.Function: 'GetUserNameEx'
Function group: 'System Information'
33.67 min.Example: 'How to remove a directory that is not empty'
33.73 min.Example: 'How to delete IE cookies, clear IE history and delete files in Temporary Internet Files directory'
3.2 hrs.Example: 'Using InternetGoOnline function'
 Example: 'Retrieving configuration information for the specified workstation (Win2000/XP)'
6.89 hrs.Example: 'Retrieving the priority class for the current process'
 Example: 'Retrieving the name of the network resource associated with a local device'
14.21 hrs.Example: 'Custom HttpRequest class (WinHTTP)'
 Example: 'Playing WAV sounds simultaneously'
Google
Advertise here!