summaryrefslogtreecommitdiff
path: root/crates/tor-memquota/src/mtracker
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosDimitris Apostolou2024-09-032-4/+4
|
* byte_qty: Move to tor-basic-utilsIan Jackson2024-08-271-1/+1
| | | | Code motion of byte_qty.rs, and minimal necessary supporting changes.
* tor-memquota: Pass EnabledToken to IsParticipant methodsIan Jackson2024-08-192-9/+10
| | | | | | | This will hopefully allow much caller code to be compiled out. The users (IsParticipant impls) don't generally need to bother with it - they can just ignore it.
* tor-memquota: Put EnabledToken in various structs, including the reclaimerIan Jackson2024-08-191-2/+10
|
* tor-memquota: Support a no-op MemoryQuotaTrackerIan Jackson2024-08-192-8/+11
| | | | | | | | | | Wrap up most of the structures in IfEnabled. Sadly this diff is very noisy. I experimented with macros for the little enabled check at the start of each function but they didn't really help. We don't test this yet. We'll do a smoke test of this later.
* tor-memquota: pre-apply rustfmt churnIan Jackson2024-08-191-3/+10
| | | | This will make some later diffs easier to read.
* tor-memquota: Rename mby test helper fn to mbytesIan Jackson2024-08-151-16/+16
| | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2292#note_3059520
* tor-memquota: Add mq_queue, memory-quota-tracking (MPSC) queueIan Jackson2024-08-151-1/+1
|
* Merge branch 'memquota-typed' into 'main'Ian Jackson2024-07-241-23/+35
|\ | | | | | | | | tor-memquota: HasMemoryCost trait, and type-safe methods See merge request tpo/core/arti!2282
| * tor-memquota: Expose some test utilities for the rest of the crateIan Jackson2024-07-241-4/+7
| |
| * tor-memquota: Improve register_participant_with (fmt)Ian Jackson2024-07-241-18/+24
| |
| * tor-memquota: Improve register_participant_withIan Jackson2024-07-241-5/+8
| | | | | | | | | | Now the constructor is able to return other data to the caller, passing it through the mtracker machinery.
* | tor-memquota: Provide Participant::destroy_participantIan Jackson2024-07-241-0/+29
| | | | | | | | The stream wrapper is going to want this.
* | tor-memquota: Correct a wrong commentIan Jackson2024-07-241-2/+1
|/ | | | | There is no `p_used` here; what we meant was the very same `ClaimedQty.`
* Change deftly syntax to post 0.12.1 versionIan Jackson2024-06-171-1/+1
| | | | | | | | | | | * Change `pub` to `export` * Change the `=` in define to `:` * Change `pub_template_semver_check` to `template_export_semver_check` Right now, 0.12.1 supports both syntaxes. I have verified this branch also compiles with https://gitlab.torproject.org/Diziet/rust-derive-deftly/-/merge_requests/402 ee171ffaf56d7dcb7d75584054921153fe19b222
* Rename tor-memtrack to tor-memquotaIan Jackson2024-04-295-0/+1533