mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove
unused old API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
70edc47dca
commit
2d6a401ecf
2 changed files with 5 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 28 12:32:24 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* include/ruby/win32.h, win32/win32.c (GetCurrentThreadHandle): remove
|
||||
unused old API.
|
||||
|
||||
Mon Nov 28 12:29:20 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/mkexports.rb (Exports#initialize): remove old symbol name.
|
||||
|
|
|
@ -279,25 +279,8 @@ rb_w32_osver(void)
|
|||
#define IfWin95(win95, winnt) (winnt)
|
||||
#endif
|
||||
|
||||
/* License: Ruby's */
|
||||
HANDLE
|
||||
GetCurrentThreadHandle(void)
|
||||
{
|
||||
static HANDLE current_process_handle = NULL;
|
||||
HANDLE h;
|
||||
|
||||
if (!current_process_handle)
|
||||
current_process_handle = GetCurrentProcess();
|
||||
if (!DuplicateHandle(current_process_handle, GetCurrentThread(),
|
||||
current_process_handle, &h,
|
||||
0, FALSE, DUPLICATE_SAME_ACCESS))
|
||||
return NULL;
|
||||
return h;
|
||||
}
|
||||
|
||||
/* simulate flock by locking a range on the file */
|
||||
|
||||
|
||||
/* License: Artistic or GPL */
|
||||
#define LK_ERR(f,i) \
|
||||
do { \
|
||||
|
|
Loading…
Add table
Reference in a new issue