mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04:00
Compare commits
3 Commits
jenkins-ac
...
v0.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c88a0b26da | ||
|
|
8002192b4e | ||
|
|
e669b27740 |
6
node.gyp
6
node.gyp
@@ -324,6 +324,12 @@
|
||||
],
|
||||
}],
|
||||
],
|
||||
'msvs_settings': {
|
||||
'VCManifestTool': {
|
||||
'EmbedManifest': 'true',
|
||||
'AdditionalManifestFiles': 'src/res/node.exe.extra.manifest'
|
||||
}
|
||||
},
|
||||
},
|
||||
# generate ETW header and resource files
|
||||
{
|
||||
|
||||
@@ -106,7 +106,7 @@ static Persistent<String> sessionid_sym;
|
||||
|
||||
static Persistent<FunctionTemplate> secure_context_constructor;
|
||||
|
||||
static uv_rwlock_t* locks;
|
||||
static uv_mutex_t* locks;
|
||||
|
||||
|
||||
static void crypto_threadid_cb(CRYPTO_THREADID* tid) {
|
||||
@@ -118,29 +118,22 @@ static void crypto_lock_init(void) {
|
||||
int i, n;
|
||||
|
||||
n = CRYPTO_num_locks();
|
||||
locks = new uv_rwlock_t[n];
|
||||
locks = new uv_mutex_t[n];
|
||||
|
||||
for (i = 0; i < n; i++)
|
||||
if (uv_rwlock_init(locks + i))
|
||||
if (uv_mutex_init(locks + i))
|
||||
abort();
|
||||
}
|
||||
|
||||
|
||||
static void crypto_lock_cb(int mode, int n, const char* file, int line) {
|
||||
assert((mode & CRYPTO_LOCK) || (mode & CRYPTO_UNLOCK));
|
||||
assert((mode & CRYPTO_READ) || (mode & CRYPTO_WRITE));
|
||||
assert(!(mode & CRYPTO_LOCK) ^ !(mode & CRYPTO_UNLOCK));
|
||||
assert(!(mode & CRYPTO_READ) ^ !(mode & CRYPTO_WRITE));
|
||||
|
||||
if (mode & CRYPTO_LOCK) {
|
||||
if (mode & CRYPTO_READ)
|
||||
uv_rwlock_rdlock(locks + n);
|
||||
else
|
||||
uv_rwlock_wrlock(locks + n);
|
||||
} else {
|
||||
if (mode & CRYPTO_READ)
|
||||
uv_rwlock_rdunlock(locks + n);
|
||||
else
|
||||
uv_rwlock_wrunlock(locks + n);
|
||||
}
|
||||
if (mode & CRYPTO_LOCK)
|
||||
uv_mutex_lock(locks + n);
|
||||
else
|
||||
uv_mutex_unlock(locks + n);
|
||||
}
|
||||
|
||||
|
||||
|
||||
17
src/res/node.exe.extra.manifest
Normal file
17
src/res/node.exe.extra.manifest
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<!-- Windows 10 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||
<!-- Windows 8 -->
|
||||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||
<!-- Windows 7 -->
|
||||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
|
||||
<!-- Windows Vista -->
|
||||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
Reference in New Issue
Block a user