{"id":16153873,"url":"https://github.com/hinto-janai/lpt","last_synced_at":"2025-06-21T21:03:01.269Z","repository":{"id":204317798,"uuid":"711578147","full_name":"hinto-janai/lpt","owner":"hinto-janai","description":"Low priority thread","archived":false,"fork":false,"pushed_at":"2023-10-29T17:56:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-21T21:02:20.387Z","etag":null,"topics":["low","priority","rust","thread"],"latest_commit_sha":null,"homepage":"https://docs.rs/lpt","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hinto-janai.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-29T17:33:44.000Z","updated_at":"2023-12-18T03:52:08.000Z","dependencies_parsed_at":"2023-11-18T00:03:14.286Z","dependency_job_id":null,"html_url":"https://github.com/hinto-janai/lpt","commit_stats":null,"previous_names":["hinto-janai/lpt"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hinto-janai/lpt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hinto-janai%2Flpt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hinto-janai%2Flpt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hinto-janai%2Flpt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hinto-janai%2Flpt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hinto-janai","download_url":"https://codeload.github.com/hinto-janai/lpt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hinto-janai%2Flpt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261193089,"owners_count":23122904,"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","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":["low","priority","rust","thread"],"created_at":"2024-10-10T01:14:48.406Z","updated_at":"2025-06-21T21:02:56.251Z","avatar_url":"https://github.com/hinto-janai.png","language":"Rust","readme":"# Low Priority Thread\n![CI](https://github.com/hinto-janai/lpt/actions/workflows/ci.yml/badge.svg) [![crates.io](https://img.shields.io/crates/v/lpt.svg)](https://crates.io/crates/lpt) [![docs.rs](https://docs.rs/lpt/badge.svg)](https://docs.rs/lpt)\n\nThis is a 1-function crate that sets the calling thread's priority to the lowest platform-specific value possible.\n\n```rust\n// Set the current thread to the lowest priority.\n//\n// This function returns () and will never fail.\nlpt::lpt();\n```\n\n## Windows\nUses [`SetThreadPriority()`](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-setthreadpriority) with `THREAD_PRIORITY_IDLE` (`-15`).\n\n## Unix\nUses [`libc::nice()`](https://man7.org/linux/man-pages/man2/nice.2.html) with the max nice level.\n\n- On `macOS` and `*BSD`: `+20`\n- On `Linux`: `+19`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhinto-janai%2Flpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhinto-janai%2Flpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhinto-janai%2Flpt/lists"}