CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Thread
new ThreadGuest() {
    
    @Override
    public Object run(Handler arg0, long arg1) {
        LogByApp.w("//### 0 ThreadGuest.run()");
        return null;
    }
}
.addChain(0, new ThreadGuest(ThreadGuest.PRIORITY_BELOW_NORMAL) {
    
by arngard   December 07, 2011 @ 4:59am
22 Views
1 comments
 
new AsyncNetTask(myContext, myHandler) {
 
    // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다.
    // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다.
    Mydata mData;
 
    @Override
    protected TcpEnvelope onPreExecute() {
        return makeEnvelope();
    }
by arngard   November 17, 2011 @ 8:26pm
30 Views
no comments
 
new ThreadGuest() {
    
    @Override
    public Object run(Handler arg0, long arg1) {
        LogByApp.w("//### 0 ThreadGuest.run()");
        return null;
    }
}
.addChain(0, new ThreadSlave() {
    
by arngard   November 17, 2011 @ 8:18pm
22 Views
no comments
 
C#
Thread.GetHashCode()
 
AppDomain.GetCurrentThreadId()
by Jose David Parra   July 05, 2011 @ 8:24pm
Tags: Thread
79 Views
no comments
 
C++
#include    <boost/noncopyable.hpp>
#include    <boost/asio.hpp>
#include    <boost/date_time/posix_time/posix_time.hpp>
#include    <boost/shared_ptr.hpp>
#include    <boost/thread.hpp>
#include    <boost/thread/mutex.hpp>
#include    <boost/thread/locks.hpp>
#include    <boost/bind.hpp>
#include    <string>
by sigidagi   April 15, 2011 @ 7:36am
142 Views
no comments
 
C#
public void Go()
{
    for (int i = 0; i < 100; i++)
    {
        WaitCallback wcb = new WaitCallback(this.DoWork);
        ThreadPool.QueueUserWorkItem(wcb, i);
    }
    Console.ReadLine();
}
by Cat   November 08, 2010 @ 2:53am
121 Views
no comments
 
C#
int intValue = 1512;
string stringValue = intValue.ToString("#,#", CultureInfo.GetCultureInfo(Thread.CurrentThread.CurrentCulture.Name));
/* Result in US English (en-US) will be 1,512
   Result in Swedish (sv-SE) will be 1 512 */
by Robert Andersson   April 29, 2010 @ 4:53am
297 Views
no comments
 
C#
// handle the completed event 
_Service.MyMethodCompleted += (s, e) =>
{
    // an Action is just a built-in delegate 
    Action _Action = () =>
    {
    // access the UI here
    this.MyLabel.Text = e.Result;
    }
    // change the thread context
by Jerry Nixon   March 05, 2010 @ 8:41am
Tags: C#, Thread, Action
427 Views
no comments
 
C#
private static object _SyncLock = new object();
 
public TableInfo<TEntity> TableInfo
{
  get 
  {
      if (_TableInfo == null)
      {
          lock (_SyncLock)
          {
by Rick Strahl   August 23, 2009 @ 9:19pm
261 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate