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) {
22 Views
1 comments
new AsyncNetTask(myContext, myHandler) { // 작업중에 필요한 변수가 있다면 finalize 하거나 이 객체의 생성자 인자로 넘길 수 있을 것입니다. // 유지해야 하는 변수라면 멤버 변수 등을 사용할 수도 있을 것입니다. Mydata mData; @Override protected TcpEnvelope onPreExecute() { return makeEnvelope(); }
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() {
22 Views
no comments
Thread.GetHashCode() AppDomain.GetCurrentThreadId()
79 Views
no comments
#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>
142 Views
no comments
public void Go() { for (int i = 0; i < 100; i++) { WaitCallback wcb = new WaitCallback(this.DoWork); ThreadPool.QueueUserWorkItem(wcb, i); } Console.ReadLine(); }
121 Views
no comments
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 */
297 Views
no comments
// 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
427 Views
no comments
private static object _SyncLock = new object(); public TableInfo<TEntity> TableInfo { get { if (_TableInfo == null) { lock (_SyncLock) {
261 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
