winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
January 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
893 discussions
Start a n
N
ew thread
Stefan Dösinger : wined3d: Count the framerate per swapchain, not globally.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 222c531b1ab0e1f7024d4ecbe916e7d54795bec9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=222c531b1ab0e1f7024d4ecbe…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jan 10 11:27:26 2007 +0100 wined3d: Count the framerate per swapchain, not globally. --- dlls/wined3d/swapchain.c | 12 +++++------- dlls/wined3d/wined3d_private.h | 2 ++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/wined3d/swapchain.c b/dlls/wined3d/swapchain.c index 6183718..d975f26 100644 --- a/dlls/wined3d/swapchain.c +++ b/dlls/wined3d/swapchain.c @@ -307,15 +307,13 @@ static HRESULT WINAPI IWineD3DSwapChainI /* FPS support */ if (TRACE_ON(fps)) { - static long prev_time, frames; - DWORD time = GetTickCount(); - frames++; + This->frames++; /* every 1.5 seconds */ - if (time - prev_time > 1500) { - TRACE_(fps)("@ approx %.2ffps\n", 1000.0*frames/(time - prev_time)); - prev_time = time; - frames = 0; + if (time - This->prev_time > 1500) { + TRACE_(fps)("%p @ approx %.2ffps\n", This, 1000.0*This->frames/(time - This->prev_time)); + This->prev_time = time; + This->frames = 0; } } diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index c018c27..323fa38 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1313,6 +1313,8 @@ typedef struct IWineD3DSwapChainImpl D3DPRESENT_PARAMETERS presentParms; DWORD orig_width, orig_height; + long prev_time, frames; /* Performance tracking */ + /* TODO: move everything up to drawable off into a context manager and store the 'data' in the contextManagerData interface. IUnknown *contextManagerData;
1
0
0
0
Stefan Dösinger : wined3d: Move material applying to the state table.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 9b4920996e7eed4ab50077eb958d67e85e82f9e7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b4920996e7eed4ab50077eb9…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jan 10 11:26:12 2007 +0100 wined3d: Move material applying to the state table. --- dlls/wined3d/drawprim.c | 34 ---------------------------------- dlls/wined3d/state.c | 35 ++++++++++++++++++++++++----------- 2 files changed, 24 insertions(+), 45 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index 2e4a694..b46192e 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -90,37 +90,6 @@ static DWORD primitiveToGl(WINED3DPRIMIT return NumVertexes; } -/* Ensure the appropriate material states are set up - only change - state if really required */ -static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) { - - IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; - - if (This->tracking_color == NEEDS_TRACKING && isDiffuseSupplied) { - /* If we have not set up the material color tracking, do it now as required */ - glDisable(GL_COLOR_MATERIAL); /* Note: Man pages state must enable AFTER calling glColorMaterial! Required?*/ - checkGLcall("glDisable GL_COLOR_MATERIAL"); - TRACE("glColorMaterial Parm=%x\n", This->tracking_parm); - glColorMaterial(GL_FRONT_AND_BACK, This->tracking_parm); - checkGLcall("glColorMaterial(GL_FRONT_AND_BACK, Parm)"); - glEnable(GL_COLOR_MATERIAL); - checkGLcall("glEnable GL_COLOR_MATERIAL"); - This->tracking_color = IS_TRACKING; - } else if ((This->tracking_color == IS_TRACKING && !isDiffuseSupplied) || - (This->tracking_color == NEEDS_TRACKING && !isDiffuseSupplied)) { - /* If we are tracking the current color but one isn't supplied, don't! */ - glDisable(GL_COLOR_MATERIAL); - checkGLcall("glDisable GL_COLOR_MATERIAL"); - This->tracking_color = NEEDS_TRACKING; - } else if (This->tracking_color == IS_TRACKING && isDiffuseSupplied) { - /* No need to reset material colors since no change to gl_color_material */ - } else if (This->tracking_color == NEEDS_DISABLE) { - glDisable(GL_COLOR_MATERIAL); - checkGLcall("glDisable GL_COLOR_MATERIAL"); - This->tracking_color = DISABLED_TRACKING; - } -} - static BOOL fixed_get_input( BYTE usage, BYTE usage_idx, unsigned int* regnum) { @@ -1248,9 +1217,6 @@ void drawPrimitive(IWineD3DDevice *iface } This->depth_copy_state = WINED3D_DCS_INITIAL; - /* Now initialize the materials state */ - init_materials(iface, (This->strided_streams.u.s.diffuse.lpData != NULL || This->strided_streams.u.s.diffuse.VBO != 0)); - { GLenum glPrimType; /* Ok, Work out which primitive is requested and how many vertexes that diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c index 8cdd758..f62db54 100644 --- a/dlls/wined3d/state.c +++ b/dlls/wined3d/state.c @@ -806,7 +806,18 @@ static void state_fogdensity(DWORD state /* TODO: Merge with primitive type + init_materials()!! */ static void state_colormat(DWORD state, IWineD3DStateBlockImpl *stateblock) { - GLenum Parm = GL_AMBIENT_AND_DIFFUSE; + GLenum Parm = -1; + WineDirect3DStridedData *diffuse = &stateblock->wineD3DDevice->strided_streams.u.s.diffuse; + BOOL isDiffuseSupplied; + + /* Depends on the decoded vertex declaration to read the existance of diffuse data. + * The vertex declaration will call this function if the fixed function pipeline is used. + */ + if(isStateDirty(stateblock->wineD3DDevice, STATE_VDECL)) { + return; + } + + isDiffuseSupplied = diffuse->lpData || diffuse->VBO; if (stateblock->renderState[WINED3DRS_COLORVERTEX]) { TRACE("diff %d, amb %d, emis %d, spec %d\n", @@ -827,19 +838,17 @@ static void state_colormat(DWORD state, Parm = GL_EMISSION; } else if (stateblock->renderState[WINED3DRS_SPECULARMATERIALSOURCE] == D3DMCS_COLOR1) { Parm = GL_SPECULAR; - } else { - Parm = -1; - } - - if (Parm == -1) { - if (stateblock->wineD3DDevice->tracking_color != DISABLED_TRACKING) stateblock->wineD3DDevice->tracking_color = NEEDS_DISABLE; - } else { - stateblock->wineD3DDevice->tracking_color = NEEDS_TRACKING; - stateblock->wineD3DDevice->tracking_parm = Parm; } + } + if(Parm == -1 || !isDiffuseSupplied) { + glDisable(GL_COLOR_MATERIAL); + checkGLcall("glDisable GL_COLOR_MATERIAL"); } else { - if (stateblock->wineD3DDevice->tracking_color != DISABLED_TRACKING) stateblock->wineD3DDevice->tracking_color = NEEDS_DISABLE; + glColorMaterial(GL_FRONT_AND_BACK, Parm); + checkGLcall("glColorMaterial(GL_FRONT_AND_BACK, Parm)"); + glEnable(GL_COLOR_MATERIAL); + checkGLcall("glEnable(GL_COLOR_MATERIAL)"); } } @@ -2678,6 +2687,10 @@ static void vertexdeclaration(DWORD stat !isStateDirty(stateblock->wineD3DDevice, STATE_TRANSFORM(WINED3DTS_VIEW))) { transform_world(STATE_TRANSFORM(WINED3DTS_WORLDMATRIX(0)), stateblock); } + + if(!isStateDirty(stateblock->wineD3DDevice, STATE_RENDER(WINED3DRS_COLORVERTEX))) { + state_colormat(STATE_RENDER(WINED3DRS_COLORVERTEX), stateblock); + } } else { /* We compile the shader here because we need the vertex declaration * in order to determine if we need to do any swizzling for D3DCOLOR
1
0
0
0
Stefan Dösinger : wined3d: Remove the invymat from drawprim.c.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: dfeb40cbffdd875155a8443214033b036c41835a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dfeb40cbffdd875155a844321…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jan 10 11:25:04 2007 +0100 wined3d: Remove the invymat from drawprim.c. --- dlls/wined3d/drawprim.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index d210b85..2e4a694 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -93,6 +93,7 @@ static DWORD primitiveToGl(WINED3DPRIMIT /* Ensure the appropriate material states are set up - only change state if really required */ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) { + IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; if (This->tracking_color == NEEDS_TRACKING && isDiffuseSupplied) { @@ -120,12 +121,6 @@ static void init_materials(IWineD3DDevic } } -static const GLfloat invymat[16] = { - 1.0f, 0.0f, 0.0f, 0.0f, - 0.0f, -1.0f, 0.0f, 0.0f, - 0.0f, 0.0f, 1.0f, 0.0f, - 0.0f, 0.0f, 0.0f, 1.0f}; - static BOOL fixed_get_input( BYTE usage, BYTE usage_idx, unsigned int* regnum) {
1
0
0
0
Stefan Dösinger : wined3d: Do not reset the material.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 329670c7f129343ef0086f76b08a40d0fd5e3242 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=329670c7f129343ef0086f76b…
Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Wed Jan 10 11:23:04 2007 +0100 wined3d: Do not reset the material. --- dlls/wined3d/drawprim.c | 28 ---------------------------- 1 files changed, 0 insertions(+), 28 deletions(-) diff --git a/dlls/wined3d/drawprim.c b/dlls/wined3d/drawprim.c index cf47106..d210b85 100644 --- a/dlls/wined3d/drawprim.c +++ b/dlls/wined3d/drawprim.c @@ -93,8 +93,6 @@ static DWORD primitiveToGl(WINED3DPRIMIT /* Ensure the appropriate material states are set up - only change state if really required */ static void init_materials(IWineD3DDevice *iface, BOOL isDiffuseSupplied) { - - BOOL requires_material_reset = FALSE; IWineD3DDeviceImpl *This = (IWineD3DDeviceImpl *)iface; if (This->tracking_color == NEEDS_TRACKING && isDiffuseSupplied) { @@ -107,45 +105,19 @@ static void init_materials(IWineD3DDevic glEnable(GL_COLOR_MATERIAL); checkGLcall("glEnable GL_COLOR_MATERIAL"); This->tracking_color = IS_TRACKING; - requires_material_reset = TRUE; /* Restore material settings as will be used */ - } else if ((This->tracking_color == IS_TRACKING && !isDiffuseSupplied) || (This->tracking_color == NEEDS_TRACKING && !isDiffuseSupplied)) { /* If we are tracking the current color but one isn't supplied, don't! */ glDisable(GL_COLOR_MATERIAL); checkGLcall("glDisable GL_COLOR_MATERIAL"); This->tracking_color = NEEDS_TRACKING; - requires_material_reset = TRUE; /* Restore material settings as will be used */ - } else if (This->tracking_color == IS_TRACKING && isDiffuseSupplied) { /* No need to reset material colors since no change to gl_color_material */ - requires_material_reset = FALSE; - } else if (This->tracking_color == NEEDS_DISABLE) { glDisable(GL_COLOR_MATERIAL); checkGLcall("glDisable GL_COLOR_MATERIAL"); This->tracking_color = DISABLED_TRACKING; - requires_material_reset = TRUE; /* Restore material settings as will be used */ } - - /* Reset the material colors which may have been tracking the color*/ - if (requires_material_reset) { - glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, (float*) &This->stateBlock->material.Ambient); - checkGLcall("glMaterialfv"); - glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, (float*) &This->stateBlock->material.Diffuse); - checkGLcall("glMaterialfv"); - if (This->stateBlock->renderState[WINED3DRS_SPECULARENABLE]) { - glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, (float*) &This->stateBlock->material.Specular); - checkGLcall("glMaterialfv"); - } else { - float black[4] = {0.0f, 0.0f, 0.0f, 0.0f}; - glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, &black[0]); - checkGLcall("glMaterialfv"); - } - glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, (float*) &This->stateBlock->material.Emissive); - checkGLcall("glMaterialfv"); - } - } static const GLfloat invymat[16] = {
1
0
0
0
Alexandre Julliard : server: Allow suspended threads to run system APCs.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 2520e387a190439dfcb1809f1e5819fab08773c9 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2520e387a190439dfcb1809f1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 21:55:23 2007 +0100 server: Allow suspended threads to run system APCs. --- dlls/ntdll/exception.c | 2 +- server/thread.c | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index 36d462f..a2f16c5 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -161,7 +161,7 @@ void wait_suspend( CONTEXT *context ) /* wait with 0 timeout, will only return once the thread is no longer suspended */ timeout.QuadPart = 0; - NTDLL_wait_for_multiple_objects( 0, NULL, 0, &timeout, 0 ); + NTDLL_wait_for_multiple_objects( 0, NULL, SELECT_INTERRUPTIBLE, &timeout, 0 ); /* retrieve the new context */ SERVER_START_REQ( get_thread_context ) diff --git a/server/thread.c b/server/thread.c index 476ee32..b8ee6fc 100644 --- a/server/thread.c +++ b/server/thread.c @@ -470,8 +470,13 @@ static int check_wait( struct thread *th struct thread_wait *wait = thread->wait; struct wait_queue_entry *entry = wait->queues; - /* Suspended threads may not acquire locks */ - if (thread->process->suspend + thread->suspend > 0) return -1; + /* Suspended threads may not acquire locks, but they can run system APCs */ + if (thread->process->suspend + thread->suspend > 0) + { + if ((wait->flags & SELECT_INTERRUPTIBLE) && !list_empty( &thread->system_apc )) + return STATUS_USER_APC; + return -1; + } assert( wait ); if (wait->flags & SELECT_ALL) @@ -1077,6 +1082,7 @@ DECL_HANDLER(queue_apc) DECL_HANDLER(get_apc) { struct thread_apc *apc; + int system_only = !req->alertable; if (req->prev) { @@ -1088,9 +1094,11 @@ DECL_HANDLER(get_apc) release_object( apc ); } + if (current->suspend + current->process->suspend > 0) system_only = 1; + for (;;) { - if (!(apc = thread_dequeue_apc( current, !req->alertable ))) + if (!(apc = thread_dequeue_apc( current, system_only ))) { /* no more APCs */ set_error( STATUS_PENDING );
1
0
0
0
Alexandre Julliard : ntdll: Make sure that critical section waits are not interrupted.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 443a5dbd809db5ca553e47aaeca3f82c2f3c2661 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=443a5dbd809db5ca553e47aae…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 21:53:39 2007 +0100 ntdll: Make sure that critical section waits are not interrupted. --- dlls/ntdll/critsection.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/critsection.c b/dlls/ntdll/critsection.c index 5cfa4d2..2be8af2 100644 --- a/dlls/ntdll/critsection.c +++ b/dlls/ntdll/critsection.c @@ -231,7 +231,7 @@ static inline NTSTATUS wait_semaphore( R LARGE_INTEGER time; time.QuadPart = timeout * (LONGLONG)-10000000; - ret = NtWaitForSingleObject( sem, FALSE, &time ); + ret = NTDLL_wait_for_multiple_objects( 1, &sem, 0, &time, 0 ); } return ret; }
1
0
0
0
Alexandre Julliard : ntdll: Only return STATUS_USER_APC from a wait if a real user APC has been run.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: e3247ecc7011177d8ecef2ccc31963fb171df26e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e3247ecc7011177d8ecef2ccc…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 20:48:02 2007 +0100 ntdll: Only return STATUS_USER_APC from a wait if a real user APC has been run. Based on a patch by Thomas Kho. --- dlls/ntdll/sync.c | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index 1d07ba7..0cb604f 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -655,10 +655,11 @@ static int wait_reply( void *cookie ) /*********************************************************************** * call_apcs * - * Call outstanding APCs. + * Call outstanding APCs. Return TRUE if a user APC has been run. */ -static void call_apcs( BOOL alertable ) +static BOOL call_apcs( BOOL alertable ) { + BOOL user_apc = FALSE; NTSTATUS ret; apc_call_t call; HANDLE handle = 0; @@ -677,12 +678,13 @@ static void call_apcs( BOOL alertable ) } SERVER_END_REQ; - if (ret) return; /* no more APCs */ + if (ret) return user_apc; /* no more APCs */ switch (call.type) { case APC_USER: call.user.func( call.user.args[0], call.user.args[1], call.user.args[2] ); + user_apc = TRUE; break; case APC_TIMER: { @@ -691,6 +693,7 @@ static void call_apcs( BOOL alertable ) RtlSecondsSince1970ToTime( call.timer.time.sec, &time ); time.QuadPart += call.timer.time.usec * 10; call.timer.func( call.timer.arg, time.u.LowPart, time.u.HighPart ); + user_apc = TRUE; break; } case APC_ASYNC_IO: @@ -733,8 +736,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects SERVER_END_REQ; if (ret == STATUS_PENDING) ret = wait_reply( &cookie ); if (ret != STATUS_USER_APC) break; - call_apcs( (flags & SELECT_ALERTABLE) != 0 ); - if (flags & SELECT_ALERTABLE) break; + if (call_apcs( (flags & SELECT_ALERTABLE) != 0 )) break; signal_object = 0; /* don't signal it multiple times */ }
1
0
0
0
Alexandre Julliard : ntdll: Compute the wait timeout only once in NTDLL_wait_for_multiple_objects.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 30a2645ee7974b0e0167a082a10c615588cefe5f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=30a2645ee7974b0e0167a082a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 20:44:35 2007 +0100 ntdll: Compute the wait timeout only once in NTDLL_wait_for_multiple_objects. --- dlls/ntdll/sync.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/sync.c b/dlls/ntdll/sync.c index 3447ae9..1d07ba7 100644 --- a/dlls/ntdll/sync.c +++ b/dlls/ntdll/sync.c @@ -715,7 +715,9 @@ NTSTATUS NTDLL_wait_for_multiple_objects { NTSTATUS ret; int cookie; + abs_time_t abs_timeout; + NTDLL_get_server_abstime( &abs_timeout, timeout ); if (timeout) flags |= SELECT_TIMEOUT; for (;;) { @@ -724,7 +726,7 @@ NTSTATUS NTDLL_wait_for_multiple_objects req->flags = flags; req->cookie = &cookie; req->signal = signal_object; - NTDLL_get_server_abstime( &req->timeout, timeout ); + req->timeout = abs_timeout; wine_server_add_data( req, handles, count * sizeof(HANDLE) ); ret = wine_server_call( req ); }
1
0
0
0
Alexandre Julliard : make_makefiles: Get rid of the rules for dll symlinks.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: 05ef63e897e9ba6620fb474b12247ed20bce3f21 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05ef63e897e9ba6620fb474b1…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 13:58:00 2007 +0100 make_makefiles: Get rid of the rules for dll symlinks. --- dlls/Makefile.in | 20 ++++-------------- tools/make_makefiles | 52 +++++++++++++------------------------------------ 2 files changed, 19 insertions(+), 53 deletions(-) diff --git a/dlls/Makefile.in b/dlls/Makefile.in index 6c01980..d516530 100644 --- a/dlls/Makefile.in +++ b/dlls/Makefile.in @@ -287,9 +287,7 @@ BUILDSUBDIRS = $(BASEDIRS) $(EXTRADIRS INSTALLSUBDIRS = $(BASEDIRS) $(EXTRADIRS) $(IMPLIBSUBDIRS) DOCSUBDIRS = $(BASEDIRS) $(EXTRADIRS) -@MAKE_RULES@ - -# Symbolic links +# 16-bit dlls WIN16_FILES = \ avifile.dll16 \ @@ -342,21 +340,11 @@ WIN16_FILES = \ wintab.dll16 \ wprocs.dll16 -SYMLINKS_SO = \ - @WIN16_FILES@ \ - +@MAKE_RULES@ # Main target -all: $(BUILDSUBDIRS) symlinks$(DLLEXT) - -.PHONY: symlinks symlinks.so implib - -symlinks.so: $(SYMLINKS_SO) - -symlinks: $(BUILDSUBDIRS) - -# Map symlink name to the corresponding library +all: $(BUILDSUBDIRS) @WIN16_FILES@ # Placeholders for 16-bit libraries @@ -578,6 +566,8 @@ IMPORT_LIBS = \ implib: $(IMPORT_LIBS) +.PHONY: implib + activeds/libactiveds.$(IMPLIBEXT): activeds/activeds.spec $(WINEBUILD) @cd activeds && $(MAKE) libactiveds.$(IMPLIBEXT) diff --git a/tools/make_makefiles b/tools/make_makefiles index 421170d..84c8cc2 100755 --- a/tools/make_makefiles +++ b/tools/make_makefiles @@ -332,13 +332,6 @@ sub update_dlls(@) my $text = ""; my @ignores = (); - sub needs_symlink($$) - { - my ($mod, $dir) = @_; - $mod =~ s/\.dll$//; - return $mod ne $dir; - } - foreach my $make (@_) { my %makefile = %{$makefiles{$make}}; @@ -356,7 +349,7 @@ sub update_dlls(@) next unless defined $makefile{"MODULE"}; my $module = $makefile{"MODULE"}; - (my $dir = $make) =~ s/^dlls\/(.*)\/[^\/]+$/$1/; + (my $dir = $makefile{"=dir"}) =~ s/^dlls\/(.*)\//$1/; if ($module =~ /^lib.*\.a$/) { @@ -365,6 +358,8 @@ sub update_dlls(@) } else { + (my $mod = $module) =~ s/\.dll$//; + die "invalid directory $dir for module $module\n" unless $mod eq $dir; $directories{$module} = $dir; } @@ -433,44 +428,29 @@ sub update_dlls(@) $text .= "INSTALLSUBDIRS = \$(BASEDIRS) \$(EXTRADIRS) \$(IMPLIBSUBDIRS)\n"; $text .= "DOCSUBDIRS = \$(BASEDIRS) \$(EXTRADIRS)\n"; - # output the all: target + # output the list of 16-bit files - my %targets = (); # use a hash to get rid of duplicate target names - my %targets16 = (); + my @targets16 = (); foreach my $mod (sort keys %directories) { - next if defined($special_dlls{$directories{$mod}}); # skip special dlls - $targets{$mod . ".so"} = 1 if needs_symlink($mod, $directories{$mod}); next unless defined $altnames{$mod}; foreach my $i (sort @{$altnames{$mod}}) { - $targets16{$i . "16"} = $mod; + push @targets16, $i . "16"; } } - - $text .= "\n\@MAKE_RULES\@\n\n"; - $text .= "# Symbolic links\n\n"; + $text .= "\n# 16-bit dlls\n\n"; $text .= "WIN16_FILES = \\\n"; - $text .= "\t" . join( " \\\n\t", sort keys %targets16 ) . "\n\n"; - $text .= "SYMLINKS_SO = \\\n"; - $text .= "\t\@WIN16_FILES\@ \\\n"; - $text .= "\t" . join( " \\\n\t", sort keys %targets ) . "\n\n"; + $text .= "\t" . join( " \\\n\t", sort @targets16 ) . "\n\n"; + $text .= "\@MAKE_RULES\@\n\n"; + + # output the all: target + $text .= "# Main target\n\n"; - $text .= "all: \$(BUILDSUBDIRS) symlinks\$(DLLEXT)\n\n"; - $text .= ".PHONY: symlinks symlinks.so implib\n\n"; - $text .= "symlinks.so: \$(SYMLINKS_SO)\n\n"; - $text .= "symlinks: \$(BUILDSUBDIRS)\n\n"; + $text .= "all: \$(BUILDSUBDIRS) \@WIN16_FILES\@\n\n"; # output the lib name -> directory rules - $text .= "# Map symlink name to the corresponding library\n\n"; - foreach my $mod (sort keys %directories) - { - next unless needs_symlink($mod, $directories{$mod}); - $text .= sprintf "%s.so: %s/%s.so\n", $mod, $directories{$mod}, $mod; - $text .= sprintf "\t\$(RM) \$@ && \$(LN_S) %s/%s.so \$@\n\n", $directories{$mod}, $mod; - } - $text .= "# Placeholders for 16-bit libraries\n\n"; foreach my $mod (sort keys %directories) { @@ -513,6 +493,7 @@ sub update_dlls(@) } $text .= "\n\n"; $text .= "implib: \$(IMPORT_LIBS)\n\n"; + $text .= ".PHONY: implib\n\n"; foreach my $mod (sort keys %importlibs) { @@ -541,11 +522,6 @@ sub update_dlls(@) $text .= "# Map library name to the corresponding directory\n\n"; - foreach my $mod (sort keys %directories) - { - next unless needs_symlink($mod, $directories{$mod}); - $text .= sprintf "%s/%s.so: %s\n", $directories{$mod}, $mod, $directories{$mod}; - } foreach my $mod (sort keys %staticlib_dirs) { $text .= sprintf "%s/%s: %s\n", $staticlib_dirs{$mod}, $mod, $staticlib_dirs{$mod};
1
0
0
0
Alexandre Julliard : wineoss: Renamed the dlls/winmm/ wineoss directory to dlls/wineoss.drv.
by Alexandre Julliard
10 Jan '07
10 Jan '07
Module: wine Branch: master Commit: dc3961bc784b4a4d0f90d523a191be9b24c835c8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc3961bc784b4a4d0f90d523a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Wed Jan 10 13:46:14 2007 +0100 wineoss: Renamed the dlls/winmm/wineoss directory to dlls/wineoss.drv. --- Makefile.in | 4 ++-- configure | 4 ++-- configure.ac | 2 +- dlls/Makefile.in | 8 ++------ dlls/{winmm/wineoss => wineoss.drv}/Makefile.in | 2 +- dlls/{winmm/wineoss => wineoss.drv}/audio.c | 0 dlls/{winmm/wineoss => wineoss.drv}/audio.h | 0 dlls/{winmm/wineoss => wineoss.drv}/dscapture.c | 0 dlls/{winmm/wineoss => wineoss.drv}/dsrender.c | 0 dlls/{winmm/wineoss => wineoss.drv}/midi.c | 0 dlls/{winmm/wineoss => wineoss.drv}/midipatch.c | 0 dlls/{winmm/wineoss => wineoss.drv}/mixer.c | 0 dlls/{winmm/wineoss => wineoss.drv}/mmaux.c | 0 dlls/{winmm/wineoss => wineoss.drv}/oss.c | 0 dlls/{winmm/wineoss => wineoss.drv}/oss.h | 0 .../wineoss => wineoss.drv}/wineoss.drv.spec | 0 16 files changed, 8 insertions(+), 12 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=dc3961bc784b4a4d0f90d…
1
0
0
0
← Newer
1
...
48
49
50
51
52
53
54
...
90
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
Results per page:
10
25
50
100
200