This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mkdir git-conflict-demo | |
| cd git-conflict-demo || exit | |
| git init | |
| # Detect default branch name (master or main) | |
| DEFAULT_BRANCH=$(git symbolic-ref --short HEAD) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use std::sync::atomic::{AtomicU32, AtomicU64, AtomicUsize, Ordering}; | |
| use std::mem::MaybeUninit; | |
| use std::cell::UnsafeCell; | |
| #[derive(Debug, PartialEq)] | |
| pub enum QueueResult { | |
| Success = 0, | |
| Failure = 1, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Under high contention loads a futex should perform worse. | |
| */ | |
| #define _GNU_SOURCE | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <pthread.h> | |
| #include <linux/futex.h> | |
| #include <sys/syscall.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * GLWT(Good Luck With That) Public License | |
| * Copyright (c) Everyone, except Author | |
| * | |
| * Everyone is permitted to copy, distribute, modify, merge, sell, publish, | |
| * sublicense or whatever they want with this software but at their OWN RISK. | |
| * | |
| * Preamble | |
| * | |
| * The author has absolutely no clue what the code in this project does. |