aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/interrupt.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs
index a6abcdd..95b5989 100644
--- a/src/interrupt.rs
+++ b/src/interrupt.rs
@@ -81,6 +81,10 @@ pub struct CriticalSection {
_0: (),
}
+macro_rules! barrier {
+ () => { asm!("" ::: "memory" : "volatile") }
+}
+
/// Execute closure `f` in an interrupt-free context.
///
/// This as also known as a "critical section".
@@ -93,7 +97,9 @@ where
// disable interrupts
disable();
+ unsafe { barrier!() }
let r = f(&CriticalSection { _0: () });
+ unsafe { barrier!() }
// If the interrupts were active before our `disable` call, then re-enable
// them. Otherwise, keep them disabled
lace-component-selector-with-astro-add'>feat/create-astro-replace-component-selector-with-astro-add Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/examples/hackernews/src (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-01-17Fix image integration not working on Node 18+ (#5871)Gravatar Erika 10-215/+12
* fix(image): Remove unnecessary polyfill now that we dropped Node 14 * fix(squoosh): Remove fetch of local wasm binary since undici doesn't support that * chore: changeset
2023-01-17Revert "Add missing `noPropertyAccessFromIndexSignature` to strictest ↵Gravatar Bjorn Lu 2-9/+0
tsconfig profile (#5864)" (#5876) This reverts commit 63d5d89038dc8cddf0a137672b68f61a21bb4951.
2023-01-17Add missing `noPropertyAccessFromIndexSignature` to strictest tsconfig ↵Gravatar Clément Nerma 2-0/+9
profile (#5864)
2023-01-17Enable skipLibCheck by default (#5872)Gravatar Bjorn Lu 2-1/+8
2023-01-14Handle server restart from Vite plugins (#5849)Gravatar Bjorn Lu 3-28/+72
2023-01-14Fix importing client-side components with alias (#5845)Gravatar Bjorn Lu 4-0/+74
2023-01-13Support envPrefix in Astro config (#5852)Gravatar Rishi Raj Jain 3-3/+8
* Support envPrefix in Astro config * Update packages/astro/src/core/config/schema.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/build/static-build.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/build/static-build.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/config/schema.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/astro/src/core/create-vite.ts Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update .changeset/twenty-llamas-type.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-13Implement redesign of portfolio example (#5765)Gravatar Chris Swithinbank 58-804/+1900
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com> Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-12[ci] formatGravatar natemoo-re 1-8/+10
2023-01-12Fix announcements CI actions when 2000+ characters (#5844)Gravatar Nate Moore 1-6/+45
* fix(ci): handle announcements >= 2000 characters * chore: support multiple branches Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12[ci] release (beta) (#5792)create-astro@2.0.0-beta.0astro@2.0.0-beta.2@astrojs/webapi@2.0.0-beta.0@astrojs/vue@2.0.0-beta.1@astrojs/vercel@3.0.0-beta.1@astrojs/telemetry@2.0.0-beta.0@astrojs/tailwind@3.0.0-beta.1@astrojs/svelte@2.0.0-beta.1@astrojs/solid-js@2.0.0-beta.0@astrojs/react@2.0.0-beta.0@astrojs/prism@2.0.0-beta.0@astrojs/preact@2.0.0-beta.0@astrojs/partytown@1.0.3-beta.0@astrojs/node@5.0.0-beta.1@astrojs/netlify@2.0.0-beta.2@astrojs/mdx@1.0.0-beta.2@astrojs/markdown-remark@2.0.0-beta.2@astrojs/lit@1.0.2-beta.0@astrojs/image@1.0.0-beta.2@astrojs/deno@4.0.0-beta.2@astrojs/cloudflare@6.0.0-beta.1Gravatar Fred K. Bot 73-156/+547
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12 Add `.astro/` to `.gitignore` in example projects (#5841)Gravatar Chris Swithinbank 24-98/+46
* Delete committed types in with-content example * Add `.astro/` to `.gitignore` in example projects
2023-01-12chore: update changeset for `_astro` directory (#5843)Gravatar Nate Moore 1-2/+2
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12fix: pass flags to dev (#5840)Gravatar Sam Chen 3-1/+9
* fix: pass flags to dev * add changeset * Update .changeset/eleven-bulldogs-provide.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-12chore: update changelogs, add changeset for `_astro` directory (#5842)Gravatar Nate Moore 5-18/+10
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12[ci] formatGravatar natemoo-re 1-1/+1
2023-01-12fix(core): handle encoded characters when matching routes (#5836)Gravatar Nate Moore 8-2/+85
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12Handle compiler breaking change (#5803)Gravatar Bjorn Lu 12-328/+109
2023-01-12fix shiki css class replace logic in md and mdx integrations (#5837)Gravatar Giuseppe La Torre 3-3/+9
2023-01-11[ci] formatGravatar matthewp 2-2/+2
2023-01-11Simplify HMR handling (#5811)Gravatar Bjorn Lu 8-108/+46
* Simplify HMR handling * Try skip test to reveal other test result * Support virtual files * Fix head injection * Revert CI changes * Bring back normalizeFilename * Refactor * Add changeset
2023-01-11[Content collections] Remove experimental flag (#5825)Gravatar Ben Holmes 27-103/+58
* refactor: remove experimental.cc from core * chore: remove experimental flag from tests * fix: mock contentDir in remark tests * fix: check vfile.path in rel-image-error plugin * fix: move .astro/ excludes to all test/fixtures * fix: include test/**/fixtures in ignore * chore: changeset
2023-01-11[Content collections] Improve content config handling (#5824)Gravatar Ben Holmes 5-58/+78
* fix: always generate types on init * fix: skip type generation when no content dir found * fix: avoid stripping `.ts` for existsSync check * chore: changeset * fix: run type gen when content/ dir added in dev
2023-01-11Run sync as part of `astro check` (#5823)Gravatar Chris Swithinbank 3-2/+13
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-11[ci] update lockfile (#5815)Gravatar Fred K. Bot 1-257/+256
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-11Fix order-of-execution bug when generating pages (#5822)Gravatar Nate Moore 2-2/+7
* fix: bundle all pages into a single chunk * chore: add changeset Co-authored-by: Nate Moore <nate@astro.build>
2023-01-11Fix `Code.astro` shiki css class replace logic (#5829)Gravatar Giuseppe La Torre 2-1/+6