class SpinLock{
Atomic<bool> isTaken = false;
public:
lock(){
while(isTaken.exchange(true));
// exchange returns value at location
}
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH=/Users/michaelasper/.cargo/bin:$PATH | |
export GOPATH=$HOME/Source/go | |
export PATH=$PATH:$GOPATH/bin | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/michaelasper/.oh-my-zsh | |
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
if has("gui_running") | |
" C-Space seems to work under gVim on both Linux and win32 | |
inoremap <C-Space> <C-n> | |
else " no gui | |
if has("unix") | |
inoremap <Nul> <C-n> | |
else | |
" I have no idea of the name of Ctrl-Space elsewhere | |
endif | |
endif |
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
" vim-bootstrap 89346c6 | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
endif | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') |
I hereby claim:
- I am michaelasper on github.
- I am asper (https://keybase.io/asper) on keybase.
- I have a public key ASCGt51C_vQgsG8lgGt_QxEZX-6LSvVJcy2-n7AHn2tC6Ao
To claim this, I am signing this object:
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
if has("gui_running") | |
" C-Space seems to work under gVim on both Linux and win32 | |
inoremap <C-Space> <C-n> | |
else " no gui | |
if has("unix") | |
inoremap <Nul> <C-n> | |
else | |
" I have no idea of the name of Ctrl-Space elsewhere | |
endif | |
endif |
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
" vim-bootstrap 89346c6 | |
"***************************************************************************** | |
"" Vim-PLug core | |
"***************************************************************************** | |
if has('vim_starting') | |
set nocompatible " Be iMproved | |
endif | |
let vimplug_exists=expand('~/.vim/autoload/plug.vim') |
NewerOlder