search for: leavecriticalsect

Displaying 20 results from an estimated 29 matches for "leavecriticalsect".

2007 Oct 21
2
Simulating RUBY_CRITICAL
...CVS). Looking at the RUBY_CRITICAL macro from rubysig.h, it basically looks like this (in pure Ruby): def RUBY_CRITICAL(&block) critical_section = [0].pack(''L'') InitializeCriticalSection(critical_section) EnterCriticalSection(critical_section) block.call LeaveCriticalSection(critical_section) end But, shouldn''t we ensure that we leave the critical section once entered, like so? # This is what''s currently in CVS def RUBY_CRITICAL(&block) critical_section = [0].pack(''L'') begin InitializeCriticalSection(critical...
2011 Apr 12
2
Threading issue
...work great within myfunc(). I am able to modify and view simple global variables in my Windows app such as integers (I havent tried a C++ class). The problem is I cannot perform operations such as creating a new thread (using afxbeginthread()) within my Windows app or use EnterCriticalSection() and LeaveCriticalSection(). Whenever I call any of these function the thread appears to get stuck in an infinite loop. I know a thread has been created and hangs because the CPU usage instantly increases to roughly 70% and never decreases as soon as the handler is called. Note: if I call myfunc() directly from within m...
2004 Sep 16
0
[LLVMdev] Files to lib/System/Win32
This version has been committed to CVS with one minor change: I made the warning about caller calling LeaveCriticalSection a little more prominent. Patch is here: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040913/018371.html Reid. On Thu, 2004-09-16 at 01:08, Jeff Cohen wrote: > Uh, use this version instead... (It's way past my bedtime :)) > > On Thu, 16 Sep 2004 01:05:52 -0700 &g...
2004 Sep 16
2
[LLVMdev] Files to lib/System/Win32
Uh, use this version instead... (It's way past my bedtime :)) On Thu, 16 Sep 2004 01:05:52 -0700 Jeff Cohen <jeffc at jolt-lang.org> wrote: > Here's the free-of-copyrighted-Microsoft-code version of Signals.cpp. > > Actually, I'm not sure if the original would work on NT/2000/XP. It was doing > stuff that's only supposed to be done on Win95/98/ME. >
2004 Sep 17
2
[LLVMdev] Files to lib/System/Win32
...ding for me :) That leaves Path.cpp. Once that's done I can actually try and execute this stuff. On Thu, 16 Sep 2004 08:55:28 -0700 Reid Spencer <reid at x10sys.com> wrote: > This version has been committed to CVS with one minor change: > I made the warning about caller calling LeaveCriticalSection a little > more prominent. Patch is here: > > http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040913/018371.html > > Reid. -------------- next part -------------- A non-text attachment was scrubbed... Name: Signals.diff Type: application/octet-stream Size: 1572 byte...
2002 Mar 21
1
Ogg Vorbis and DirectSound streaming
...e must implement read/seek functions so they are build using only ov_read() and ov_pcm_seek() from the vorbis-sdk. First, I thought that the problem is that more than one thread is trying to use this functions and it forces the application to crash but I've added EnterCriticialSection() and LeaveCriticalSection() in the read and seek methods - the problem haven't disappeared(the application can mix more than one sound during playing). Can someone help me with some hints what the problem can be. The strange thing is that it crashes randomly(it can play a song one or two times and crash during th...
2010 Nov 20
1
CRITICAL_SECTION hang my application
...e second thread tries to add text - it hangs my app :( . Here is the code in C++: Code: HWND__ *h_Edit = rtf_list->Handle; EnterCriticalSection(&cr_sec); CHARRANGE cr; cr.cpMin = 0; cr.cpMax = 0; // App hangs on this line SendMessage(h_Edit, EM_EXSETSEL, 0, (LPARAM)&cr); //..... LeaveCriticalSection(&cr_sec); Before this I use: Code: CRITICAL_SECTION cr_sec; InitializeCriticalSection(&cr_sec); to initialize Critical Section.
2004 Sep 17
0
[LLVMdev] Files to lib/System/Win32
...e that's done I can actually try and execute > this stuff. > > > On Thu, 16 Sep 2004 08:55:28 -0700 > Reid Spencer <reid at x10sys.com> wrote: > > >>This version has been committed to CVS with one minor change: >>I made the warning about caller calling LeaveCriticalSection a little >>more prominent. Patch is here: >> >>http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040913/018371.html >> >>Reid. >> >> >>------------------------------------------------------------------------ >> >>____________...
2002 Apr 02
0
AW: Ogg Vorbis and DirectSound streaming
...unctions so they are build > using only > ov_read() and ov_pcm_seek() from the vorbis-sdk. First, I thought that the > problem is that more than one thread is trying to use this functions and it > forces the application to crash but I've added EnterCriticialSection() > and > LeaveCriticalSection() in the read and seek methods - the problem haven't > disappeared(the application can mix more than one sound during playing). Can > someone help me with some hints what the problem can be. > > The strange thing is that it crashes randomly(it can play a song one > or two &gt...
2015 Nov 11
4
UPnP support in tinc
Hi Guus, Unfortunately, I often notice that even with the advanced UDP hole punching mechanisms that tinc uses, I still come across cases on my network where two nodes behind NATs cannot talk to each other because one of the nodes is behind a "strict" NAT that won't use consistent source ports for UDP packets that are sent to different destination addresses. More formally, this
2015 Nov 12
0
UPnP support in tinc
...for dependencies: it should be possible to disable support for UPnP for those who want to build a minimal version of tinc. As for threads, tinc 1.0.x on Windows already uses threads (as you should know) without using libpthread. If UPnP can be integrated by just using CreateThread() and maybe Enter/LeaveCriticalSection(), I'd use that and avoid the whole issue of libpthread. NAT-PMP (and PCP?) seems interesting to, maybe it is simple enough to code directly into tinc? -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A n...
2015 Nov 12
2
UPnP support in tinc
...should be possible to disable support for UPnP > for those who want to build a minimal version of tinc. As for threads, > tinc 1.0.x on Windows already uses threads (as you should know) without > using libpthread. If UPnP can be integrated by just using CreateThread() > and maybe Enter/LeaveCriticalSection(), I'd use that and avoid the whole > issue of libpthread. Okay. > NAT-PMP (and PCP?) seems interesting to, maybe it is simple enough to > code directly into tinc? Well, the author of miniupnpc also wrote libnatpmp, which apparently *is* specifically designed to be integrated int...
2020 Sep 25
0
Wine release 5.18
...e. msvcrt: Add _snprintf_s_l. msvcirt: Set error when file can't be opened in fstream_open_ctor. msvcirt: Implement ofstream class. mshtml: Implement IOleObject::[Get|Set]Extent. dwmapi: Implement DwmIsCompositionEnabled. Haidong Yu (3): conhost: Add missing LeaveCriticalSection. ws2_32: Add missing LeaveCriticalSection. conhost: Input should be restored and input_thread handle should be closed before return. Hans Leidekker (2): crypt32: Set key context if PKCS12_NO_PERSIST_KEY is passed, otherwise set key provider info. crypt32: Add support for...
2004 Nov 15
0
[LLVMdev] Fixes for windows version
...; > > if (CleanupExecuted) > @@ -81,7 +81,7 @@ > if (FilesToRemove == NULL) > FilesToRemove = new std::vector<sys::Path>; > > - FilesToRemove->push_back(sys::Path(Filename)); > + FilesToRemove->push_back(sys::Path(Filename.get())); > > LeaveCriticalSection(&CriticalSection); > } > Index: lib/System/Win32/Win32.h > =================================================================== > RCS file: /var/cvs/llvm/llvm/lib/System/Win32/Win32.h,v > retrieving revision 1.1 > diff -u -r1.1 Win32.h > --- lib/System/Win32/Win32.h 15 S...
2004 Nov 15
2
[LLVMdev] Fixes for windows version
Hi, when I updated the sources today there were several small problems that stopped the windows version from compiling, here are the patches m. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: win32patches.txt URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041115/34634455/attachment.txt>
2013 Jun 28
0
Wine release 1.6-rc4
...space. Marcus Meissner (8): dbghelp: Free root in error case (Coverity). dbghelp: Free srcpath in stabs handling (Coverity). gdi32: Close handle in error path (Coverity). gdi32: Close handle in mfdrv (Coverity). msvf32: Fixed incorrect sizeof (Coverity). ole32: LeaveCriticalSection in one exit case (Coverity). ole32: Fixed bad sizeof()s in composite moniker (Coverity). winmm: Fix incorrect parameter for test debug (Coverity). Matteo Bruni (2): wined3d: Fix handling of cnd instruction with coissue flag. d3d9/tests: Improve cnd instruction test. Mic...
2013 Feb 25
5
Puppet execution hangs for long periods of time
Hi, I wrote a little "hello world" script and I am a little concerned by execution that hangs for long periods of time. *computer:* Windows XP Professional Service Pack 3 Intel(R) Xeon(R) CPU W3550 @ 3.07GHz 3.07GHz, 3.50 GB of RAM *init.pp:* class hello { notice(''Hello world!'') } *command line:* puppet apply --debug -e ''include hello''
2016 Jun 10
0
Wine release 1.9.12
...ing an embedded WMF in an EMF. Jacek Caban (8): msctf: Don't call ITextStoreACP::UnadviseSink in context destructor. msctf: Added Push/Pop context tests. msctf: Fixed ref counts in tests. wininet: Fixed leak in HTTP_DealWithProxy (coverity). wininet: Added missing LeaveCriticalSection to set_cookie (coverity). wininet: Skip more problematic tests on IE6. wininet: Correctly handle the last proxy override in HTTP_ShouldBypassProxy. user32: Make SetWindowLongW hotpatchable. Julian Rüger (1): po: Update German translation. Józef Kucia (38): wined3d...
2007 Dec 28
0
Wine release 0.9.52
...winealsa: Add special case for microphone source in mixer. Marcus Meissner (2): msi: Fixed buffer overflow in number parsing. d3d9: Initialize pVertexBuffer. Michael Jung (1): ole32: Avoid leaving a critical section twice. Michael Stefaniuc (3): rpcrt4: Add missing LeaveCriticalSection. Found by Smatch. secur32/tests: InitFunctionPtrs() needs to use the global crypt32dll variable. gdi32: There is no need to cast NULL to a function pointer. Mike McCormack (1): shell32: Implement "My Network Places" shell folder. Peter Beutner (1): d3d9: Add s...
2017 Feb 17
0
Wine release 2.2
..._event_dispex_ref helper that avoids using attr_name. mshtml: Don't use attr_name in attr_to_eid. mshtml: Removed no longer used attr_name from event_info_t. Jacob Lifshay (1): kernel32: Fix improper escaping of quotes in command line. Jactry Zeng (1): qcap: Avoid call LeaveCriticalSection() repeatedly. Jarkko Korpi (1): ntoskrnl: Add IoStopTimer stub. Jetro Jormalainen (1): dinput: Give correct count of devices still to be enumerated. Jonathan Doron (3): ntdll: Define more file information classes. include: Add definition for FILE_ID_INFORMATION....