Skip to content

Instantly share code, notes, and snippets.

scheduling policy = TIME_CONSTRAINT
period = 10666666
computation = 100000
constraint = 10666666
preemtible = TRUE
10.6ms
0.1ms
10.6ms
swift_allocObject
#include <libkern/OSAtomic.h>
int32_t OSAtomicStore(volatile int32_t *address, int32_t new_value)
{
while (true){
int32_t old_value = *address;
if (OSAtomicCompareAndSwap32Barrier(old_value, new_value, address)){
return old_value;
}
}
}
C:\user\hoge\AppData\Roaming\Avid\Pro Tools First
git submodule git://hoge hoge
git submodule deinit hoge
rake assets:precompile
i = 0
sum = 0
File.foreach('a.txt') do |line|
s = line.split(" ")
if i % 2 == 0
t = s[5]
if !t.nil?
sum += t.to_i
end
end
ssh-add -K ~/.ssh/id_rsa
//
// main.swift
// aaa
//
// Created by pebble8888 on 2016/12/21.
// Copyright © 2016年 pebble8888. All rights reserved.
//
//
// OSX NSSpeechRecognizer example swift3