RU
EN
Main Page
Download
Addons
Forum
Blog
Feedback
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
News:
AIMP v5.40
AIMP Forum
»
AIMP for Windows
»
Addons
»
Development
(Moderators:
Soolo
,
Tiger
) »
How to support asynchronous access in custom Music Library
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: How to support asynchronous access in custom Music Library (Read 5190 times)
0 Members and 1 Guest are viewing this topic.
How to support asynchronous access in custom Music Library
«
on:
August 28, 2018, 00:11:40 »
Moshi0
Продвинутый
Posts: 63
Карма: +29/-0
How exactly should i support asynchronous access in IAIMPMLDataProvider::GetData and IAIMPMLGroupingTreeDataProvider::GetData?
Do I use IAIMPMLDataStorageManager::BackgroundTaskStarted? And I cant block thread in GetData so what do I return?
Logged
Re: How to support asynchronous access in custom Music Library
«
Reply #1 on:
August 28, 2018, 15:49:51 »
Artem
Администратор
Супермен
Posts: 17735
Карма: +3015/-66
You should bear in mind that these methods may be called from different threads, and at same time.
Logged
Re: How to support asynchronous access in custom Music Library
«
Reply #2 on:
August 29, 2018, 01:16:29 »
Moshi0
Продвинутый
Posts: 63
Карма: +29/-0
Oh ok, makes sense. I thought you had to somehow make the methods non blocking.
Thanks.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
AIMP Forum
»
AIMP for Windows
»
Addons
»
Development
(Moderators:
Soolo
,
Tiger
) »
How to support asynchronous access in custom Music Library