梁静茹[亲亲]之最上耳

qq.jpg
时隔一年,梁静茹终于推出了她第N张全新个人专辑.这张专辑回归了梁静茹原来的风格,走的是温柔情歌路线.当然,这样很是讨巧,毕竟绝大多数的粉丝会接受这样的风格,但是,必然的,听多耳疲,这些歌很难在第一时间叫醒你的耳朵了.测试哪些歌能叫醒你的耳朵呢,最好的方法就是在你昏昏欲睡的状况下还能让你有毅力去看一下歌名.
Read the rest of this entry »

Pink for October

notsurewho.gif

乳腺癌是女性最常见的恶性疾病,每年10月为世界乳腺癌防治月,『Pink for October』十月网站粉红活动,旨在加强人们对乳腺癌的关注与认知,进而关心自己与亲友的健康。

如果您也想参与这项活动,请访问PinkforOctober.里面不少漂亮的WP模板哦。
Read the rest of this entry »

Foobar skin[simple]

foobar_sample.jpg
很简单的skin,平时听歌都是最小化的。我想除了周某人的歌需要歌词以外,别的都是可以听明白的吧。只是使用了playlists_dropdown,single column playlist,trackinfo mod三个插件,参考了先锋Foobar版的帖子后改的。
Read the rest of this entry »

ATL对象多线程访问临界锁的实现

1. 几个临界区类

ATL将Windows临界区封装了一下,即CComCriticalSection和CComAutoCriticalSection类。两者的实现如下(精简):

class CComCriticalSection
{
public:
    
CComCriticalSection()
    
{  memset(&m_sec, 0, sizeof(CRITICAL_SECTION));   }
    
HRESULT Lock()
    
{  EnterCriticalSection(&m_sec); return S_OK; }
    
HRESULT Unlock()
    
{ LeaveCriticalSection(&m_sec); return S_OK; }
    
HRESULT Init()
    
{
        
InitializeCriticalSection(&m_sec);
        
return S_OK;
    
}
    
HRESULT Term()
    
{ DeleteCriticalSection(&m_sec); return S_OK; }
 
    
CRITICAL_SECTION m_sec;
};
 
class CComAutoCriticalSection : public CComCriticalSection
{
public:
    
CComAutoCriticalSection()
    
{ HRESULT hr = CComCriticalSection::Init(); }
    ~
CComAutoCriticalSection()
    
{ CComCriticalSection::Term(); }
private:
    
HRESULT Init();
    
HRESULT Term();
};

Read the rest of this entry »