New PodeMutex - mdaneri/Pode GitHub Wiki
external help file: Pode-help.xml Module Name: Pode online version: PodeType: Threading schema: 2.0.0
Create a new Mutex.
New-PodeMutex [-Name] <String> [[-Scope] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Create a new Mutex.
New-PodeMutex -Name 'SelfMutex'
New-PodeMutex -Name 'LocalMutex' -Scope Local
New-PodeMutex -Name 'GlobalMutex' -Scope Global
The Name of the Mutex.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The Scope of the Mutex, can be either Self, Local, or Global. (Default: Self) Self: The current process, or child processes. Local: All processes for the current login session on Windows, or the the same as Self on Unix. Global: All processes on the system, across every session.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: Self
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.