目前分類:C and C++ (177)

瀏覽方式: 標題列表 簡短摘要

template<typename Cont>
typename Cont::const_iterator findNull(const Cont &c)

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://alexbowe.com/dry-function-pointers-in-c/

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

https://github.com/CppCon/CppCon2014/tree/master/Presentations

 https://github.com/CppCon/CppCon2014/tree/master/Presentations/An%20Overview%20of%20C%2B%2B11%20and%20C%2B%2B14

hedgezzz 發表在 痞客邦 留言(0) 人氣()

早上收信時,收到 1024cores blog 作者 Dmitry 討論區回覆他讀者的信:

https://groups.google.com/forum/#!topic/lock-free/Wg9F-EwYfF8

hedgezzz 發表在 痞客邦 留言(0) 人氣()

最近在講解 lock-free 使用到 Double Word CAS  避免 ABA 問題時 , 

發現在 ABA 上頭 , 似乎 朋友 臉上都有三條線 ...

hedgezzz 發表在 痞客邦 留言(0) 人氣()

關於 coroutine , setjmp , longjmp implement 執行速度 比 ucontext 要來的快 ,

以下是 1024cores 強者 , 來自戰鬥民族的蘇聯人,寫了一篇關於 setjmp and longjmp的文章 :

hedgezzz 發表在 痞客邦 留言(0) 人氣()

stackoverflow :

http://stackoverflow.com/questions/4352451/coroutine-demo-source-2/4352706#4352706

hedgezzz 發表在 痞客邦 留言(0) 人氣()

sample from  https://gist.github.com/felipec/13493

#ifndef TRANS_H
#define TRANS_H

#include <ucontext.h>

#include <stdbool.h>
#include <stdio.h>

struct task
{
    bool pending;
    char stack[SIGSTKSZ];

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://dunkels.com/adam/

protothread 1.4 已經是 2006 年的事了 , 裡面的 sample 非常容易了解 , 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://wiki.apache.org/stdcxx/C++0xCompilerSupport

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://www.liblfds.org/wordpress/

/liblfds6.1.1/liblfds611/src/lfds611_abstraction/lfds611_abstraction_dcas.c

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://hedgezzz.pixnet.net/blog/post/6527671

這是之前所 po 的 function pointer ,  找到幾個蠻有意思的 webpage , 可以有更多 sample code

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://www.java2s.com/Tutorial/Cpp/0040__Data-Types/Printinganunsignedintegerinbits.htm

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

in Linux , use posix_memaligned ,

in winx use aligned_alloc  ,  but this only work at c++11 ,

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://stackoverflow.com/questions/11408934/using-a-stdtuple-as-key-for-stdunordered-map

http://stackoverflow.com/questions/20834838/using-tuple-in-unordered-map

hedgezzz 發表在 痞客邦 留言(0) 人氣()

http://preshing.com/20131125/acquire-and-release-fences-dont-work-the-way-youd-expect/

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()

struct Mars_
{

hedgezzz 發表在 痞客邦 留言(0) 人氣()

struct msgA_
{

hedgezzz 發表在 痞客邦 留言(0) 人氣()

stackoverflow webpage :

http://stackoverflow.com/questions/20778424/finding-cycle-in-singly-linked-list

hedgezzz 發表在 痞客邦 留言(0) 人氣()

"Introduction to High Performance Computing for Scientists and Engineers"  is the book !!

 

hedgezzz 發表在 痞客邦 留言(0) 人氣()