• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Actions
    • IAimpAction
    • IAimpActionEvent
    • IAimpServiceActionManager
  • AlbumArt
    • IAimpServiceAlbumArtCache
    • IAimpAlbumArtSearchOptions
    • IAimpExtensionAlbumArtCatalog
    • IAimpExtensionAlbumArtCatalog2
    • AimpAlbumArtProviderCategory
    • IAimpExtensionAlbumArtProvider
    • IAimpExtensionAlbumArtProvider2
    • AimpFindCovertArtType
    • AimpGetAlbumArtEventArgs
    • IAimpServiceAlbumArt
  • Core
    • AimpActionException
    • AimpInternalLogger
    • Extensions
    • IAimpLogger
    • IAimpService
    • IAimpConfig
    • IAimpExternalSettingsDialog
    • AimpErrorArgs
    • IAimpObject
    • IAimpObjectList`1
    • IAimpObjectList
    • IAimpStream
    • ActionResultType
    • AimpActionResult
    • AimpActionResult`1
    • AimpActionResult`2
    • IAimpExtension
    • AimpPluginType
    • AimpPluginAttribute
    • AimpPlayerState
    • AimpWindowHandleTypes
    • AimpEventsDelegate
    • IAimpCore
    • IAimpPlugin
    • AimpPlugin
    • CustomAssemblyResolver
    • PluginLoadUnloadEvent
    • PluginInformation
    • DotNetPluginInfo
    • PluginShortInfoForLoad
    • PluginLoadingStrategy
    • AssemblyScanPluginLoadStrategy
    • PluginInfoLoader
    • AimpDotNetPlugin
  • File Manager
    • Extensions
      • IAimpExtensionFileExpander
      • FileFormatsCategoryTypes
      • IAimpExtensionFileFormat
      • IAimpExtensionFileInfoProvider
      • IAimpExtensionFileSystem
    • Commands
      • IAimpFileSystemCommand
      • IAimpFileSystemCommandCopyToClipboard
      • IAimpFileSystemCommandDelete
      • IAimpFileSystemCommandDropSource
      • IAimpFileSystemCommandFileInfo
      • IAimpFileSystemCommandOpenFileFolder
      • IAimpFileSystemCommandStreaming
      • IAimpFileSystemCustomFileCommand
    • FileCommandType
    • FileFormats
    • IAimpServiceFileFormats
    • ServiceFileInfoFlags
    • IAimpServiceFileInfo
    • IAimpServiceFileInfoFormatter
    • IAimpServiceFileInfoFormatterUtils
    • IAimpServiceFileManager
    • FileStreamingType
    • CeateStreamResult
    • IAimpServiceFileStreaming
    • IAimpServiceFileSystems
    • IAimpVirtualFile
    • AimpFileAttributes
    • IAimpFileInfo
  • Lyrics
    • LyricsProviderCategory
    • IAimpExtensionLyricsProvider
    • LyricsType
    • LyricsFormat
    • IAimpLyrics
    • LyricsFlags
    • AimpServiceLyricsReceive
    • IAimpServiceLyrics
  • Menu
    • MenuItemStyle
    • IAimpMenuItem
    • ParentMenuType
    • IAimpServiceMenuManager
  • Message Dispatcher
    • Constants
    • AimpCoreMessageType
    • AimpCorePathType
    • IAimpMessageHook
    • MessageDirectionType
    • IAimpServiceMessageDispatcher
  • Multi-Language UI
    • IAimpServiceMUI
  • Music Library
    • Presets
      • IAimpGroupingPreset
      • IAimpGroupingPresets
      • IAimpGroupingPresetStandard
    • Extension
      • Command
        • IAimpDataStorageCommandAddFiles
        • IAimpDataStorageCommandAddFilesDialog
        • IAimpDataStorageCommandDeleteFiles
        • IAimpDataStorageCommandDropData
        • IAimpDataStorageCommandReloadTags
        • IAimpDataStorageCommandReportDialog
        • IAimpDataStorageCommandUserMark
      • CapabilitiesType
      • SchemaType
      • GroupingPresetsSchemaType
      • IAimpExtensionDataStorage
    • DataStorage
      • AimpDataField
      • AimpDataFieldType
      • AimpDataFieldFlagsType
      • ImageType
      • IAimpDataField
      • IAimpDataFieldDisplayValue
      • IAimpDataStorage
      • CapabilitiesFlags
      • IAimpGroupingTreeDataProvider
      • GroupingTreeNodeFlags
      • FieldImageIndex
      • IAimpGroupingTreeDataProviderSelection
      • IAimpGroupingTreeSelection
      • IAimpDataProvider
    • DataFilter
      • FieldFilterOperationType
      • IAimpDataFieldFilter
      • IAimpDataFieldFilterByArray
      • FilterGroupOperationType
      • IAimpDataFilterGroup
    • SortDirectionType
    • IAimpDataFilter
    • IAimpDataProviderSelection
    • IAimpDataStorageManager
    • IAimpFileList
    • IAimpMusicLibraryPlaylistPreimage
    • IAimpServiceMusicLibrary
    • FilesType
    • IAimpServiceMusicLibraryUI
  • Options Dialog
    • IAimpOptionsDialogFrameKeyboardHelper
    • IAimpServiceOptionsDialog
    • OptionsDialogFrameNotificationType
    • IAimpOptionsDialogFrame
  • Player
    • IAimpPlayer
  • Playlists
    • IAimpPlayer
  • Tag Editor
    • IAimpFileTag
    • IAimpFileTagEditor
    • TagType
    • IAimpServiceFileTagEditor
  • Threading
    • IAimpServiceThreads
    • IAimpTask
    • IAimpTaskOwner
    • IAimpServiceSynchronizer
    • AimpServiceThreadPoolType
    • IAimpServiceThreadPool
    • AimpTaskPriority
    • IAimpTaskPriority
  • Visuals
    • AimpVisualData
    • AimpVisualFlags
    • IAimpExtensionCustomVisualization
    • AimpVisualClickButtonType
    • IAimpExtensionEmbeddedVisualization
    • IAimpServiceVisualizations

Interface IAimpServiceThreadPool

Service provides an access to thread pool and allows to plugin add a task to asynchronous execution. Note that count of running threads at same time is limited. All tasks will be added to special queue and will be executed when one of the threads is idle.

Make sure that all your tasks is completed or canceled during plugin finalization.

Implements the IAimpService
Inherited Members
IAimpService.IsExists
Namespace: AIMP.SDK.Threading
Assembly: AIMP.SDK.dll
Syntax
[Obsolete("Use IAimpServiceThreads")]
public interface IAimpServiceThreadPool : IAimpService

Methods

Cancel(UIntPtr, AimpServiceThreadPoolType)

Cancels the specified task.

Declaration
AimpActionResult Cancel(UIntPtr taskHandle, AimpServiceThreadPoolType flags)
Parameters
Type Name Description
System.UIntPtr taskHandle

The task handle.

AimpServiceThreadPoolType flags

The flags.

Execute(IAimpTask)

Executes the specified task.

Declaration
AimpActionResult<UIntPtr> Execute(IAimpTask task)
Parameters
Type Name Description
IAimpTask task

The task.

WaitFor(UIntPtr)

Method provides an ability to wait for task completion.

Declaration
AimpActionResult WaitFor(UIntPtr taskHandle)
Parameters
Type Name Description
System.UIntPtr taskHandle

The task handle.

See Also

IAimpService
In This Article
Back to top Generated by DocFX