Recent Posts

Pages: 1 ... 3 4 [5] 6 7 ... 10
41
Nice!

I hadn't seen anything about a 1.7.4.1 update.  I just updated and ran the test...fixed!
Thank you sir.
42
That's a known issue with those releases. I've just updated everyone to V1.7.4.1 (Windows only release), which should fix this problem.

Please download the new version and try again. If there is still a problem, then I'll investigate further.
43
I’m seeing an Access Violation on unload in crtdll.c on line 531 using 1.7.3 or 1.7.4 (v90 or v100 toolsets) in a dynamically loaded/unloaded Windows DLL.

First-chance exception at 0x000007fefb8bc413 (jtindll.dll) in JTTest.exe: 0xC0000005: Access violation writing location 0x0000000000000410.

From crtdll.c line 531 debugging:
_pRawDllMain = 0x000007fefb8be8d0 `anonymous namespace'::run_tls_callback(void * ptr64,unsigned long,void * ptr64)


The exception appears to be handled, but I am concerned and generally don’t care for anomalous behaviors.  I can provide the test if you wish, but it is pretty simple.  The dll exports start() and stop().  start() creates a thread and stop() joins it.  The exe just loads the dll, calls start then stop and unloads the dll.  This is just native code, no managed nonsense.
Can you confirm/explain this? 
44
General Discussion about just::thread / Re: Need justthread for debian armel
« Last post by kkerbel on August 14, 2012, 02:46:03 AM »
Understood. What is the rate for a custom port?
45
Just::Thread is not available for ARMEL at the moment. Porting to ARMEL is more than just a recompile, since the assembly code must be changed. It is currently on the "future plans" list, but with no due date.

If you upgrade to a site licence then I will move this port to the top of the list, and start work on it. If you need it really urgently, you can pay for a custom port.
46
General Discussion about just::thread / Need justthread for debian armel
« Last post by kkerbel on August 11, 2012, 10:42:00 AM »
Is it possible to get the source so I can compile this for debian/armel or is there anyway you can cross compile it?  Thanks! 

This is urgent!

Kit
47
As always...thanks!   :)
48
To create a thread using a class member function you need to pass a "this" pointer as the second parameter to the std::thread constructor:

Code: [Select]
a an_a_object;
std::thread dosomething(&a::afunction, &an_a_object,32); // a pointer to an a
std::thread t2(&a::function,std::ref(an_a_object),32); // a reference wrapped in std::ref
std::thread t3(&a::function,a(),32); // an rvalue, which is copied/moved into the thread storage

You might like to see my Multithreading in C++0x tutorial series. Member functions are covered in Part 3: Starting Threads with Member Functions and Reference Arguments
49
class a {
   void afunction(int a);
   ...
};

//this is obviously an incomplete class...just trying to make clear what I'm trying to do... :-)

how do I go about doing something like...

thread dosomething(afunction, 32);
dosomething.detach();
50
General Discussion about just::thread / Re: Lambda functions
« Last post by kkerbel on July 28, 2012, 02:20:46 AM »
Thanks!
Pages: 1 ... 3 4 [5] 6 7 ... 10