template<typename Cont>
typename Cont::const_iterator findNull(const Cont &c)
目前分類:C and C++ (177)
- Dec 04 Thu 2014 09:47
sample of template
- Dec 01 Mon 2014 16:35
function pointer 幾個 很棒的連結
- Nov 19 Wed 2014 12:06
CppCon2014
- Feb 24 Mon 2014 09:50
今天早上收到一封 mail--關於 MPMC
早上收信時,收到 1024cores blog 作者 Dmitry 討論區回覆他讀者的信:
https://groups.google.com/forum/#!topic/lock-free/Wg9F-EwYfF8
- Feb 11 Tue 2014 14:14
ABA problem of Compare And Swap
- Jan 17 Fri 2014 15:35
setjmp , longjmp implement coroutine
關於 coroutine , setjmp , longjmp implement 執行速度 比 ucontext 要來的快 ,
以下是 1024cores 強者 , 來自戰鬥民族的蘇聯人,寫了一篇關於 setjmp and longjmp的文章 :
- Jan 16 Thu 2014 12:59
coroutine sample in c++
- Jan 16 Thu 2014 12:20
coroutine sample
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];
- Jan 15 Wed 2014 10:29
lightweight Coroutine library -- protothread
- Jan 14 Tue 2014 16:11
gcc c++0x compiler support
- Jan 09 Thu 2014 12:40
Double Word CAS library
http://www.liblfds.org/wordpress/
/liblfds6.1.1/liblfds611/src/lfds611_abstraction/lfds611_abstraction_dcas.c
- Jan 08 Wed 2014 11:57
function pointer --- again
http://hedgezzz.pixnet.net/blog/post/6527671
這是之前所 po 的 function pointer , 找到幾個蠻有意思的 webpage , 可以有更多 sample code
- Jan 03 Fri 2014 10:44
Printing an unsigned integer in bits
- Dec 31 Tue 2013 15:42
posix_memalign and aligned_alloc
in Linux , use posix_memaligned ,
in winx use aligned_alloc , but this only work at c++11 ,
- Dec 30 Mon 2013 16:40
using std::tuple as key for unordered_map
- Dec 30 Mon 2013 12:29
release operation and release fence in c++11
- Dec 27 Fri 2013 10:46
placement new
struct Mars_
{
- Dec 26 Thu 2013 16:15
union and structure
struct msgA_
{
- Dec 26 Thu 2013 11:17
finding cycle in singly linked list
stackoverflow webpage :
http://stackoverflow.com/questions/20778424/finding-cycle-in-singly-linked-list
- Dec 26 Thu 2013 08:56
know cpu topology before using sched_setaffinity