{"id":22441433,"url":"https://github.com/hms-core/hms-accelerate-demo-multithread-lib","last_synced_at":"2025-09-12T23:37:54.211Z","repository":{"id":45623209,"uuid":"280979575","full_name":"HMS-Core/hms-accelerate-demo-multithread-lib","owner":"HMS-Core","description":"The sample code describes how to use the HMS AccelerateKit SDK, including dispatch queues create, push work items into queues, release queues.","archived":false,"fork":false,"pushed_at":"2021-02-22T08:42:50.000Z","size":125,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-13T19:52:32.401Z","etag":null,"topics":["accelerate","blocks","hms","huawei","queue"],"latest_commit_sha":null,"homepage":"","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HMS-Core.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-20T00:59:42.000Z","updated_at":"2022-11-01T08:19:04.000Z","dependencies_parsed_at":"2022-09-22T12:50:28.947Z","dependency_job_id":null,"html_url":"https://github.com/HMS-Core/hms-accelerate-demo-multithread-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/HMS-Core/hms-accelerate-demo-multithread-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMS-Core%2Fhms-accelerate-demo-multithread-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMS-Core%2Fhms-accelerate-demo-multithread-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMS-Core%2Fhms-accelerate-demo-multithread-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMS-Core%2Fhms-accelerate-demo-multithread-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HMS-Core","download_url":"https://codeload.github.com/HMS-Core/hms-accelerate-demo-multithread-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HMS-Core%2Fhms-accelerate-demo-multithread-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274893580,"owners_count":25369354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-12T02:00:09.324Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accelerate","blocks","hms","huawei","queue"],"created_at":"2024-12-06T02:14:30.253Z","updated_at":"2025-09-12T23:37:54.166Z","avatar_url":"https://github.com/HMS-Core.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HMS Accelerate Kit Demo\n\n\n## Table of Contents\n\n * [Introduction](#introduction)\n * [Preparation](#preparation)\n * [Installation](#installation)\n * [Experience Different Functions](#function-use)\n * [Supported Environments](#supported-environments)\n * [Result](#result)\n * [License](#license)\n\n\n## Introduction\nThe sample code describes how to use the HMS AccelerateKit SDK, including dispatch queues create, push work items into queues, release queues.\n    \nMain APIs in sample code:\n1. Queues Create\ndispatch_queue_create(): creates queues.\n2. Push Work Items(blocks) into queues:\ndispatch_async(): pushes work items into queue asynchronously.\ndispatch_barrier_sync(): push work items into queue synchronously and make sure that all of work items, which has been pushed in the queue, should be finished.\n3. Queues Release\ndispatch_release(): releases queues.\n\n## Preparation\n### 1. Register as a developer.\nBefore you get started, you must register as a HUAWEI developer and complete identity verification on [HUAWEI Developers](https://developer.huawei.com/consumer/en/). For details, please refer to [Registration and Verification](https://developer.huawei.com/consumer/en/doc/start/10104).\n### 2. Create an app and apply for a agconnect-services.json.\nCreate an app and set package type to APK (android app). Apply for the agconnect-services.json file on HUAWEI Developers. For details, please refer to [Adding the AppGallery Connect Configuration File].\nSee details: [HUAWEI Accelerate Development Preparation](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/introduction-0000001050980807)\n### 3. Build\nTo build this sample, import the sample to Android Studio (3.x +), download agconnect-services.json from AppGallery Connect, and add the file to the app's root directory app of the demo app.\n\n## Installation\nDownload the sample code and open it in Android Studio. Ensure that your device has been connected to the internet and obtain the APK by building a project.\n\n## Function Use\nYou can tap buttons in your app to experience rich services of HUAWEI Accelerate Kit.\n\n## Supported Environments\nDevices with Android 5.0 or later are recommended.\n\n## Result\nAfter the four tasks are executed concurrently, the other four tasks are executed in serial mode.\n\n## Question or issues\nIf you want to evaluate more about HMS Core, [r/HMSCore on Reddit](https://www.reddit.com/r/HuaweiDevelopers/) is for you to keep up with latest news about HMS Core, and to exchange insights with other developers.\n\nIf you have questions about how to use HMS samples, try the following options:\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/huawei-mobile-services) is the best place for any programming questions. Be sure to tag your question with \n`huawei-mobile-services`.\n- [Huawei Developer Forum](https://forums.developer.huawei.com/forumPortal/en/home?fid=0101187876626530001) HMS Core Module is great for general questions, or seeking recommendations and opinions.\n\nIf you run into a bug in our samples, please submit an [issue](https://github.com/HMS-Core/hms-accelerate-demo/issues) to the Repository. Even better you can submit a [Pull Request](https://github.com/HMS-Core/hms-accelerate-demo/pulls) with a fix.\n\n## License\nThe sample of HUAWEI Accelerate Kit has obtained the [Apache 2.0 license.](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhms-core%2Fhms-accelerate-demo-multithread-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhms-core%2Fhms-accelerate-demo-multithread-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhms-core%2Fhms-accelerate-demo-multithread-lib/lists"}